soulweaver91 / project-carrot

Project Carrot, an open source spiritual clone of the Jazz Jackrabbit 2 game engine
https://carrot.soulweaver.fi/
MIT License
38 stars 4 forks source link

Turtle shells can behave weirdly upon collision at times #39

Closed soulweaver91 closed 7 years ago

soulweaver91 commented 8 years ago

The intended behavior was that exactly one of the shells (the faster one) would run the collision code and react accordingly by moving backwards until the shells no longer collide and set the speeds of both shells to go to opposite directions. What can happen is that the shell teleports to the other side of the collision partner shell instead and the two shells somehow collide repeatedly each frame until one of them is destroyed.