Character Hovering [0.9]

Pottej

14-06-2007 18:16:01

Hey,

I'm experimenting with my character controller, but I'm having some weird issues with it hovering above the ground.

I want a capsule shape with a total height of 1.8, and a radius of 0.4. So basically PhysX would call that a capsule with height 1.0 and radius 0.4 i presume.

However I think for characters I need to specify the total height and radius, so I'm making a character with dimensions (0.4,1.8,0). If I do (0.4,1.0,0) then the debugger says I have a capsule shape with radius 0.32 and height 0.8 which is totally mad.

Anyway, no matter what dimensions I specify my character to have the shape never seems to sit on the floor in the debugger. I can move around and collide with objects fine, but there is always a seperation between the floor and my capsules feet (again as seen from the physx debugger).

Does anyone have any idea why this is? Is there a certani ratio I need to make the capsule radius/height to avoid this happening?

Cheers

Pottej

betajaen

14-06-2007 18:29:42

There is a matter of skin width to account for. Which may explain the 0.32 and 0.8.

It also hovers above the ground so it can move across terrain better (Little bumps on the ground and stairs). It's just how it is. Besides there would have to be a gap for the raycasting to work.

Pottej

14-06-2007 18:41:13

Cheers, just played around with the skin width and discovered the same thing :)

I was just taken suprised because the debugger doesnt really show the skin depth so thought I had broken something.