CrazyLegz
17-06-2009 16:02:03
Hi,
I'm not sure if this is the right place to ask this question since it isn't directly related to NxOgre (although I am using it), but I thought there are some physx experts around here and the nvidia developer forums aren't really very active, so I hope the forum moderators won't mind.
Here's my post on nvidia which doesn't get much replies: http://developer.nvidia.com/forums/index.php?showtopic=3272
I'm using a capsule character controller.
When I place my character above a surface along with some boxes, everything falls down like it's supposed to. Only my character stops just before it hits the surface, and floats a little distance above the surface. In the character demo I saw that the character also floats a little distance above the ground. Does anyone know why this is? And how I can manipulate this distance?
A screenshot is attached to this message.
And for the sake of completeness, here a code snippet as how I instantiate the capsule controller descriptor.
Thanks in advance,
Crazylegz.
I'm not sure if this is the right place to ask this question since it isn't directly related to NxOgre (although I am using it), but I thought there are some physx experts around here and the nvidia developer forums aren't really very active, so I hope the forum moderators won't mind.
Here's my post on nvidia which doesn't get much replies: http://developer.nvidia.com/forums/index.php?showtopic=3272
I'm using a capsule character controller.
When I place my character above a surface along with some boxes, everything falls down like it's supposed to. Only my character stops just before it hits the surface, and floats a little distance above the surface. In the character demo I saw that the character also floats a little distance above the ground. Does anyone know why this is? And how I can manipulate this distance?
A screenshot is attached to this message.
And for the sake of completeness, here a code snippet as how I instantiate the capsule controller descriptor.
NxCapsuleControllerDesc description;
description.setToDefault();
description.position.x = position.x;
description.position.y = position.y;
description.position.z = position.z;
description.height = height;
description.radius = radius;
description.skinWidth = 0.1;
description.slopeLimit = std::cosf(NxMath::degToRad(45.0f));
description.stepOffset = 0.5;
description.upDirection = NX_Y;
description.climbingMode = CLIMB_CONSTRAINED;//CLIMB_EASY
description.callback = this;
Thanks in advance,
Crazylegz.