Jagguar Game Engine
Loading...
Searching...
No Matches
PhysicsEngine.hpp
1#ifndef PHYSICSENGINE_HPP
2#define PHYSICSENGINE_HPP
3
4#include <vector>
5
6#include "IPhysicsComponent.hpp"
7
12public:
17
22
28 void AddComponent(IPhysicsComponent* newComponent);
29
35 void Update();
36
42 void SetGravity(float newGravity);
43
44private:
49 float m_gravity = 2.0f;
50
54 std::vector<IPhysicsComponent*> m_components;
55};
56
57#endif
Definition: IPhysicsComponent.hpp:11
Definition: PhysicsEngine.hpp:11
void Update()
Definition: PhysicsEngine.cpp:17
void SetGravity(float newGravity)
Definition: PhysicsEngine.cpp:87
PhysicsEngine()
Definition: PhysicsEngine.cpp:8
void AddComponent(IPhysicsComponent *newComponent)
Definition: PhysicsEngine.cpp:11
float m_gravity
Definition: PhysicsEngine.hpp:49
std::vector< IPhysicsComponent * > m_components
Definition: PhysicsEngine.hpp:54
~PhysicsEngine()
Definition: PhysicsEngine.cpp:9