diff options
Diffstat (limited to 'src/crepe/system/PhysicsSystem.h')
-rw-r--r-- | src/crepe/system/PhysicsSystem.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/crepe/system/PhysicsSystem.h b/src/crepe/system/PhysicsSystem.h new file mode 100644 index 0000000..5ed624f --- /dev/null +++ b/src/crepe/system/PhysicsSystem.h @@ -0,0 +1,24 @@ +#pragma once + +#include "System.h" + +namespace crepe { + +/** + * \brief System that controls all physics + * + * This class is a physics system that uses a rigidbody and transform to add physics to a game + * object. + */ +class PhysicsSystem : public System { +public: + using System::System; + /** + * \brief updates the physics system. + * + * It calculates new velocties and changes the postion in the transform. + */ + void fixed_update() override; +}; + +} // namespace crepe |