aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Rigidbody.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Rigidbody.h')
-rw-r--r--src/crepe/api/Rigidbody.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h
index dc242c1..05cbb03 100644
--- a/src/crepe/api/Rigidbody.h
+++ b/src/crepe/api/Rigidbody.h
@@ -1,20 +1,24 @@
#pragma once
-#include "../Component.h"
#include <cstdint>
+#include "../Component.h"
+
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 ...)
+ //! Does not move (e.g. walls, ground ...)
+ STATIC,
+ //! Moves and responds to forces (e.g. player, physics objects ...)
+ DYNAMIC,
+ //! Moves but does not respond to forces (e.g. moving platforms ...)
+ KINEMATIC,
};
class Rigidbody : public Component {
public:
- Rigidbody(uint32_t gameObjectId, int mass, int gravityScale,
- BodyType bodyType);
+ Rigidbody(uint32_t game_object_id, int mass, int gravity_scale,
+ BodyType body_type);
int32_t velocity_x;
int32_t velocity_y;
int mass;