Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Viktor-Kolaric-ID.8311933-217CR-Resit-Assignment/Player.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
58 lines (33 sloc)
835 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "GameObject.h" | |
#include "CRVec3.h" | |
class Player : public GameObject | |
{ | |
private: | |
public: | |
float mass; | |
float inertia; | |
GLfloat orientation; | |
float momentOfinertia; | |
float length; | |
float width; | |
CR217::CRVec3 centerOfMass; | |
CR217::CRVec3 acceleration; | |
CR217::CRVec3 velocity; | |
CR217::CRVec3 totalForce; | |
CR217::CRVec3 torque; | |
CR217::CRVec3 futureVelocity; | |
CR217::CRVec3 futureOrientation; | |
CR217::CRVec3 futurePosition; | |
CR217::CRVec3 angularVelocity; | |
CR217::CRVec3 angularAcceleration; | |
CR217::CRVec3 futureAngularVelocity; | |
CR217::CRVec3 angularForces; | |
CR217::CRVec3 forcePosition; | |
CR217::CRVec3 forceValue; | |
Player(float m, CR217::CRVec3 position); | |
void Draw(); | |
void calculateForces(); | |
void Update(float); | |
~Player(); | |
}; | |