diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-20 14:33:19 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-20 14:33:19 +0200 |
commit | d8483cfab70b5aca3baae6e0588924da8b54e090 (patch) | |
tree | 5326d27e365ddea1923ee64586e0c5fc3befe6a9 /src/crepe/Rigidbody.cpp | |
parent | 4ff1159fe5f6ee6dd8becc662bc95a93acda545a (diff) |
updated components to have an ID
Diffstat (limited to 'src/crepe/Rigidbody.cpp')
-rw-r--r-- | src/crepe/Rigidbody.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/Rigidbody.cpp b/src/crepe/Rigidbody.cpp index 495d908..a610e55 100644 --- a/src/crepe/Rigidbody.cpp +++ b/src/crepe/Rigidbody.cpp @@ -2,5 +2,6 @@ using namespace crepe; -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) {} + |