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
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