From b019b401c3a1de0ffea7e6776242ae73599651ef Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Fri, 15 Nov 2024 16:10:45 +0100 Subject: collision handeling example --- src/crepe/system/CollisionSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe/system/CollisionSystem.cpp') diff --git a/src/crepe/system/CollisionSystem.cpp b/src/crepe/system/CollisionSystem.cpp index 56f07cc..b9366df 100644 --- a/src/crepe/system/CollisionSystem.cpp +++ b/src/crepe/system/CollisionSystem.cpp @@ -93,7 +93,7 @@ void CollisionSystem::call_collision_handler(const CollidedInfoStor& data1,const { *collider2, data2.transform, data2.rigidbody } }; CollisionEvent data(collision_info); - EventManager::get_instance().trigger_event(data, 0); + EventManager::get_instance().trigger_event(data, first); } } -- cgit v1.2.3