aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Rigidbody.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 22:23:36 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 22:23:36 +0200
commit6e2c5e1b57210b10f8781f103e5c46308544339f (patch)
tree9738592f2082de1881a0ea019bf3c99644134aef /src/crepe/api/Rigidbody.h
parent9b7be419c9dcc6ebd1e504713c7b2676ca3d2fdf (diff)
more nitpicking
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;