diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-19 20:43:53 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-19 20:43:53 +0100 |
commit | 38a2476bcfa41b6d83a9a72d35f5acb684dc87fd (patch) | |
tree | c07949d57bc806ad0261173c702bef1f871e4d1e /src | |
parent | 3b615d87f421b576227ef6d0f7e3c5d66c545da2 (diff) |
added doxygen comments
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; }; |