diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/crepe/Collider.h | 5 | ||||
-rw-r--r-- | src/crepe/api/Rigidbody.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/crepe/Collider.h b/src/crepe/Collider.h index 54695b1..e910ae4 100644 --- a/src/crepe/Collider.h +++ b/src/crepe/Collider.h @@ -1,13 +1,16 @@ #pragma once -#include "Component.h" #include "api/Vector2.h" +#include "Component.h" + namespace crepe { class Collider : public Component { public: Collider(game_object_id_t id, Vector2 offset); + + //! Offset of the collider relative to rigidbody position Vector2 offset; }; diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h index 782de22..a007107 100644 --- a/src/crepe/api/Rigidbody.h +++ b/src/crepe/api/Rigidbody.h @@ -78,7 +78,7 @@ public: bool bounce = false; //! bounce factor of material double elastisity = 0.0; - //! offset of all colliders + //! offset of all colliders relative to transform position Vector2 offset; }; |