aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/CollisionSystem.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-16 16:43:02 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-16 16:43:02 +0100
commit387bf02833c610f93326bf743db463eea8032a62 (patch)
treea25440f7d42d92f47e6df0a97abb9c97f82e3021 /src/crepe/system/CollisionSystem.h
parent876896e50711509e80ef551b4e8ad440e8039b97 (diff)
added collision features
Diffstat (limited to 'src/crepe/system/CollisionSystem.h')
-rw-r--r--src/crepe/system/CollisionSystem.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/crepe/system/CollisionSystem.h b/src/crepe/system/CollisionSystem.h
index 5b136c6..aebb59b 100644
--- a/src/crepe/system/CollisionSystem.h
+++ b/src/crepe/system/CollisionSystem.h
@@ -195,6 +195,15 @@ private:
void determine_collision_handler(CollisionInfo & info);
/**
+ * \brief Calls both collision script
+ *
+ * Calls both collision script to let user add additonal handeling or handle full collision.
+ *
+ * \param info Collision information containing data about both colliders.
+ */
+ void call_collision_events(CollisionInfo & info);
+
+ /**
* \brief Handles collisions involving static objects.
*
* Resolves collisions by adjusting positions and modifying velocities if bounce is enabled.
@@ -203,6 +212,15 @@ private:
*/
void static_collision_handler(CollisionInfo & info);
+ /**
+ * \brief Handles collisions involving dynamic objects.
+ *
+ * Resolves collisions by adjusting positions and modifying velocities if bounce is enabled.
+ *
+ * \param info Collision information containing data about both colliders.
+ */
+ void dynamic_collision_handler(CollisionInfo & info);
+
private:
/**
* \brief Checks for collisions between colliders.