aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Rigidbody.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Rigidbody.cpp')
-rw-r--r--src/crepe/api/Rigidbody.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/api/Rigidbody.cpp b/src/crepe/api/Rigidbody.cpp
index 98d1d60..30a2cff 100644
--- a/src/crepe/api/Rigidbody.cpp
+++ b/src/crepe/api/Rigidbody.cpp
@@ -2,5 +2,6 @@
using namespace crepe::api;
-Rigidbody::Rigidbody(int mass, int gravityScale, int bodyType)
- : mass(mass), gravity_scale(gravityScale), body_type(bodyType) {}
+Rigidbody::Rigidbody(uint32_t gameObjectId,int mass, int gravityScale, BodyType bodyType)
+ : Component(gameObjectId), mass(mass), gravity_scale(gravityScale), body_type(bodyType) {}
+