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?
That's the code i am currently using. I hope this'll help.
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.