Stabilizing

May 19, 2009 at 11:25 AM
Edited May 19, 2009 at 11:26 AM

Anyone whos played my game Boxycraft may have noticed how sometimes the player might fly off into the air. If you havent, what happens is that sometimes the player is suddenly flung in a direcction for no apparent reason at all. It usually happens when the player is standing still on an object and then moves, or when he moves onto a new body.

My player is made up of a box, with a ball attatched as its feet. I apply torque to the ball to move.

Ive tried grid spacings and more/less vertices and using smaller forces, but it still seems to happen.

I understand that certain innaccuracies are part of physics engines, but is there a way I can catch that force when its applied and then set the velocity to 0 to cancel it out? Can anyone tell me where this wrong force comes from?

Any ideas, or thoughs on stabilising it, would be appreciated.
Thanks :)