i am building up a platformer using a technique called speculative contacts.
Everything was going so smoothly, i get pretty fast really good results - but i now have encountered that nasty ghost collisions issue :-(
I dont want this to happen anymore:
- Player stands directly besides the side of a block which is small enough so that the player can jump over.
- Player jumps upwards - without any x-motion at all
- Gravity pulls player down until it reaches the edge of the block
- Player stops due to internal edge collisions - even there are no x-motion at all :-(
Made a short video to show this problem: https://www.youtube.com/watch?v=MKH93ItimIE&feature=youtu.be
This behavior is normal in a speculative context, because it creates an edge vs edge contact with a "near" zero separation.
Also this can happen on the x-direction as well, when the player stands on boxes and collides with their internal edge :-(
What is a good reasonable way to solve this problem? I have just a bunch of rigid bodies without any relation at all.
Please help me to tackle this problem.