kinematic character jitters

slorenzo
Posts: 5
Joined: Sun Jul 17, 2005 11:10 pm

kinematic character jitters

Post by slorenzo »

I'm trying to move a kinematic character over a btStaticPlaneShape. Most of the code was adapted from the character control demo app. (bullet 2.74+Ogre)
The problem is that if I use a capsule the character jitters. I tried using a bigger capsule and a smaller stepheight but the result is the same: the object cannot move smoothly over the floor. (At one frame the object sunk 0.2 units into the floor)

The wierd thing is that if the shape is replaced by a sphere or a box the character slides perfectly.

I'm confused because the demo app is actually using a capsule without jittering.
Any hint?

Regards,
SL
slorenzo
Posts: 5
Joined: Sun Jul 17, 2005 11:10 pm

Re: kinematic character jitters

Post by slorenzo »

Another test: My app (the one that jitters) includes a capsule over a plane but the demo uses a capsule inside a box.
If I replace the plane by a box the jitter stops.

The box is convex but the plane is concave: maybe that explains the difference.

Any idea?

SL
homare
Posts: 2
Joined: Wed Feb 25, 2009 11:10 am

Re: kinematic character jitters

Post by homare »

slorenzo
Posts: 5
Joined: Sun Jul 17, 2005 11:10 pm

Re: kinematic character jitters

Post by slorenzo »

homare said:
I'm not so sure. In that thread Erwin said:
3) as long as you use a rounded shape, such as a capsule, the character shouldn't suffer from a 'interior' edge problem
and I'm using a capsule and a plane. They don't have interior edges or joints.

Thanks,
SL