diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-01 23:03:07 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-01 23:03:07 +0100 |
commit | cbd4b97d348c46f4f43fe59683a5e3d1bdbc500f (patch) | |
tree | d41f6323ffa31ef6d96ccc4f5198965f22f87c08 /src/crepe/system/CollisionSystem.h | |
parent | a69ae733dae7996be41f54d8f8d9c1c5e5879b92 (diff) |
improved readablity of check_collision function and reset LoopManager
Diffstat (limited to 'src/crepe/system/CollisionSystem.h')
-rw-r--r-- | src/crepe/system/CollisionSystem.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/crepe/system/CollisionSystem.h b/src/crepe/system/CollisionSystem.h index 39ee83d..ea8c1e1 100644 --- a/src/crepe/system/CollisionSystem.h +++ b/src/crepe/system/CollisionSystem.h @@ -177,14 +177,12 @@ private: * * Calls the appropriate collision detection function based on the collider types. * - * \param collider1 The first collider. - * \param components1 Transform and Rigidbody of the first object. - * \param collider2 The second collider. - * \param components2 Transform and Rigidbody of the second object. + * \param first_info Collision data for the first collider. + * \param second_info Collision data for the second collider. * \param type The type of collider pair. * \return True if a collision is detected, otherwise false. */ - bool check_collision(const collider_variant& collider1,std::pair<std::reference_wrapper<Transform>, std::reference_wrapper<Rigidbody>> components1,const collider_variant& collider2,std::pair<std::reference_wrapper<Transform>, std::reference_wrapper<Rigidbody>> components2,CollisionSystem::CollisionInternalType type); + bool check_collision(const CollisionInternal& first_info,const CollisionInternal& second_info, CollisionInternalType type); /** * \brief Retrieves the active Transform and Rigidbody components for a given game object. |