diff options
Diffstat (limited to 'src/crepe/api/Rigidbody.h')
-rw-r--r-- | src/crepe/api/Rigidbody.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h index e59e217..dc242c1 100644 --- a/src/crepe/api/Rigidbody.h +++ b/src/crepe/api/Rigidbody.h @@ -3,19 +3,20 @@ #include "../Component.h" #include <cstdint> -namespace crepe::api{ +namespace crepe::api { enum class BodyType { - Static, // Does not move (e.g. walls, ground ...) - Dynamic, // Moves and responds to forces (e.g. player, physics objects ...) - Kinematic // Moves but does not respond to forces (e.g. moving platforms ...) + STATIC, // Does not move (e.g. walls, ground ...) + DYNAMIC, // Moves and responds to forces (e.g. player, physics objects ...) + KINEMATIC // Moves but does not respond to forces (e.g. moving platforms ...) }; class Rigidbody : public Component { public: - Rigidbody(uint32_t gameObjectId,int mass, int gravityScale, BodyType bodyType); + Rigidbody(uint32_t gameObjectId, int mass, int gravityScale, + BodyType bodyType); int32_t velocity_x; - int32_t velocity_y; + int32_t velocity_y; int mass; int gravity_scale; BodyType body_type; |