aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-19 20:43:53 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-19 20:43:53 +0100
commit38a2476bcfa41b6d83a9a72d35f5acb684dc87fd (patch)
treec07949d57bc806ad0261173c702bef1f871e4d1e
parent3b615d87f421b576227ef6d0f7e3c5d66c545da2 (diff)
added doxygen comments
-rw-r--r--src/crepe/Collider.h5
-rw-r--r--src/crepe/api/Rigidbody.h2
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;
};