Character shape problem

rUmbl3

04-09-2006 21:24:56

I got a little problem with the CharacterController esp. with the shape the controller is creating. I am currently using the old code, so no blueprint system.
The middle of the shape is always somewhere a little above the feet of the model i am using (currently just the ninja.mesh). Is there any possibility to move the middle more to the "real" middle of the model?


NxCapsuleControllerDesc mDesc;
mDesc.position = NxExtendedVec3(_pos.x,_pos.y ,_pos.z);
mDesc.height = 1.0;
mDesc.radius = 1.0;
mDesc.upDirection = NX_Y; // mUpDirection;
mDesc.slopeLimit = cosf(NxMath::degToRad(35.0f));
mDesc.skinWidth = 0.0025f;
mDesc.stepOffset = 0.40f;
mDesc.callback = this;


That's the code i am currently using. I hope this'll help.

betajaen

04-09-2006 21:53:23

This is a known problem with the ninja mesh, best thing to do is don't supply a name for the mesh for the character.

Create the ninja entity attach it to a scenenode, then to the character node, but move the ninja node -1 metre down.