How do I rotate a btKinematicCharacterController? In the demo the controls move the object forwards, backwards, left right. I have a camera attached to a btKinematicCharacterController and I want turn left and right, so the view will turn rather than strafe.
btKinematicCharacterController::setWalkDirection(btVector3) seems to be the only way of controlling the object.
I've tried following the demo which uses something like this:
Code: Select all
m_character->setWalkDirection(walkDirection*walkSpeed);
But I can't seem to get btVector3::rotate(btVector3 wAxis,btScalar Angle) to work on walkDirection.
What approach would be best for this?