Interpenetration when inertia is set

Topics: User Forum
Jun 10, 2011 at 1:14 PM

I'm currently working on a basic side scroller game using Farseer Physics.  I set the inertia value for my player's Body object so it will rotate when it collides with other objects (such as a sloped platform below it).  However when this is set and the Body collides with a static platform below it, the Body will begin to jitter and interpenetrate the platform for a moment before falling through the bottom.  The effect is identical for all values (except 0) I set for inertia.

Here's a screenshot: http://i.imgur.com/RkG67.png

You can see the slight jitter in this picture.  The white rectangle is rendered by the Farseer debug viewer and the pink one is the texture being rendered by my game.

Any ideas?