aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/CollisionSystem.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-05 22:15:38 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-05 22:15:38 +0100
commit453aeafda1503aeafa54b8f6e293936c1a3db5ea (patch)
treed97f86686f8847f40e6f9e3a51c6878d17896a44 /src/crepe/system/CollisionSystem.h
parent9604616001ac273f2c966c3c829638e905def7bf (diff)
dynamic and static bug fixes
Diffstat (limited to 'src/crepe/system/CollisionSystem.h')
-rw-r--r--src/crepe/system/CollisionSystem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/system/CollisionSystem.h b/src/crepe/system/CollisionSystem.h
index 6995bb5..b978dbb 100644
--- a/src/crepe/system/CollisionSystem.h
+++ b/src/crepe/system/CollisionSystem.h
@@ -177,13 +177,14 @@ private:
* \param circle_collider The first CircleCollider.
* \param box_collider The second CircleCollider.
* \param circle_position The position of the CircleCollider.
- * \param box_position The position of the BocCollider.
+ * \param box_position The position of the BoxCollider.
+ * \param inverse Inverted true if box circle collision, false if circle box collision (inverts the direction).
* \return The resolution vector for the collision.
*/
vec2 get_circle_box_resolution(const CircleCollider & circle_collider,
const BoxCollider & box_collider,
const vec2 & circle_position,
- const vec2 & box_position) const;
+ const vec2 & box_position,bool inverse) const;
/**
* \brief Determines the appropriate collision handler for a collision.