We are making a platformer game and I want the player(sprite) which is a body to jump on a platform(floor body). We are using the collision handler which chiphunk provides and are able to detect the collisions between the platform and the player sprite.
But when it(sprite body) collides to the platform it slightly goes through the platform(floor body) and then settles down on the floor body(platform). Why is that happening?
Why doesn't it just sit on the platform when it first contacts the platform? Or do I have to set the sprite(body) position to the platform X and Y coords after collision?
Can't it do this automatically?
-Imran