MageFlight / merlin-game-engine

GNU General Public License v3.0
1 stars 0 forks source link

Fix collision issues with 3 colliders #11

Closed MageFlight closed 1 year ago

MageFlight commented 1 year ago

Fix the collision issues described in #10 by not sorting the colliders by type, only by distance during the collision detection. The colliders may be swapped before checking collision based on their velocities. The collider with the greater velocity will be colliderA.