diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-15 16:10:45 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-15 16:10:45 +0100 |
commit | b019b401c3a1de0ffea7e6776242ae73599651ef (patch) | |
tree | 473c90cd71a8ee9943d8d333e11f6d40e68a8287 /src/crepe/system/CollisionSystem.cpp | |
parent | e6bc46a30152a7585dda24fde66622575349d25e (diff) |
collision handeling example
Diffstat (limited to 'src/crepe/system/CollisionSystem.cpp')
-rw-r--r-- | src/crepe/system/CollisionSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<CollisionEvent>(data, 0); + EventManager::get_instance().trigger_event<CollisionEvent>(data, first); } } |