Character sinks when running on another object

Night Elf

12-12-2006 19:07:35

I'm using a capsule as my character's body and when I get it onto another body (a convex hull) and walk on it, the capsule sometimes sinks inside the convex hull. Any ideas?

Some clues:

I'm using a scale of 1 = 1 cm. Im using 980 as gravity.

The character's capsule is 60 x 190. It has a mass of 80 and the intertia is calculated using MomentOfInertia::CalcCylinderSolid().

The convex hull is roughly a box of 500 x 100 x 300. It has a mass of 100 and the intertia is calculated using MomentOfInertia::CalcBoxSolid().

The interpenetration occurs only if I'm walking onto the other body. If the capsule stands still, it doesn't sink (or at least I've haven't come across a case when that happens).