55 ProjectileObject(Ogre::Real initalXVelocity, Ogre::Real initalYVelocity, Ogre::Real initalZVelocity)
58 this->initalVelocity = velocity = Ogre::Vector3(initalXVelocity, initalYVelocity, initalZVelocity);
99 Ogre::Real
getVfromUAT(Ogre::Real u, Ogre::Real a, Ogre::Real t);
109 Ogre::Real
getSfromUAT(Ogre::Real u, Ogre::Real a, Ogre::Real t);
119 Ogre::Real
getSfromUVT(Ogre::Real u, Ogre::Real v, Ogre::Real t);
139 Ogre::Real
getSfromVAT(Ogre::Real v, Ogre::Real a, Ogre::Real t);
146 bool collisionTest(Ogre::Vector3 position, Ogre::Vector3 testPosition);
Ogre::Vector3 velocity
Definition: GamePhysics.h:30
Ogre::Real time
Definition: GamePhysics.h:34
Ogre::Vector3 initalVelocity
Definition: GamePhysics.h:28
ProjectileObject(Ogre::Vector3 initalVelocity)
Definition: GamePhysics.h:40
A class for the GamePhysics.
Definition: GamePhysics.h:15
~GamePhysics()
Definition: GamePhysics.cpp:14
#define GRAVITY
Definition: GamePhysics.h:9
Ogre::Real getSfromVAT(Ogre::Real v, Ogre::Real a, Ogre::Real t)
Definition: GamePhysics.cpp:102
Ogre::Vector3 displacement
Definition: GamePhysics.h:26
Ogre::Real acceleration
Definition: GamePhysics.h:32
ProjectileObject(Ogre::Real initalXVelocity, Ogre::Real initalYVelocity, Ogre::Real initalZVelocity)
Definition: GamePhysics.h:55
std::shared_ptr< ProjectileObject > projectile
Definition: GamePhysics.h:66
Ogre::Vector3 getProjectileDisplacement()
Definition: GamePhysics.cpp:45
Ogre::Real getVfromUAT(Ogre::Real u, Ogre::Real a, Ogre::Real t)
Definition: GamePhysics.cpp:54
GamePhysics()
Definition: GamePhysics.cpp:7
Definition: GamePhysics.h:23
Ogre::Real getSfromUVT(Ogre::Real u, Ogre::Real v, Ogre::Real t)
Definition: GamePhysics.cpp:78
void updateProjectile(float dt)
Definition: GamePhysics.cpp:21
bool collisionTest(Ogre::Vector3 position, Ogre::Vector3 testPosition)
Definition: GamePhysics.cpp:115
Ogre::Real getVSquaredfromUAS(Ogre::Real u, Ogre::Real a, Ogre::Real s)
Definition: GamePhysics.cpp:90
Ogre::Real getSfromUAT(Ogre::Real u, Ogre::Real a, Ogre::Real t)
Definition: GamePhysics.cpp:66