Use local coordinates with KX_CharacterWrapper.walkDirection?

So I’m playing with the Character physics and moving a character around with the KX_CharacterWrapper.walkDirection, but it only accepts world coordinates. Is there an easy way to move the character like this using it’s local coordinates instead? Thanks! :slight_smile:

EDIT: Never mind, sorry, figured out how to do it with the Motion actuator.

For anyone who might need help with this, just access a Motion actuator set to “Character Motion” Motion Type and use the dLoc to move the character.


moveAct = controller.actuators["Name of Actuator"]
moveAct.dLoc = [moveX, moveY, moveZ]
controller.activate(moveAct)