Help with collision issue - Solved

Topics: User Forum
Feb 21, 2010 at 9:36 PM
Edited Feb 21, 2010 at 10:23 PM

Update - I figured it out - sorry for the post.  Turns out that the landing would create torque on the body causing the rectangle to rotate and lay on its side, making it appear to sink into the platform.  I couldn't figure out how to turn off rotation, but setting the moment of inertia to float.maxvalue seems to work for now.

My platform game allows the player to walk on the surface of the platform just fine.  But if my player starts flying and lands on the platform, he will have a small bounce on the surface correctly but after the bounce he settles about halfway inside the platform.  Any ideas of what is happening here?

P.S. - platforms and player are both using rectangular bodies and geometries, created as outlined in the documentation.