1 #ifndef PHYSICSCOMPONENT_HPP
2 #define PHYSICSCOMPONENT_HPP
15 void Update(
float deltaTime);
bool onGround
Definition: PhysicsComponent.hpp:19
Definition: TinyMath.hpp:15
void Update(float deltaTime)
Update the velocity and transfor of this compenent according to deltaTime.
Definition: PhysicsComponent.cpp:10
Vector3D velocity
The velocity of this gameObject.
Definition: PhysicsComponent.hpp:18
~PhysicsComponent()
Definition: PhysicsComponent.cpp:8
PhysicsComponent(bool hasGravity)
Creates a component with or without gravity.
Definition: PhysicsComponent.cpp:6
Definition: Component.hpp:13
Definition: PhysicsComponent.hpp:8