Character Controller Global Movement

Hello all,

I have been using the character controller to make a top down shooter lately but I am having trouble with movement.

The rotation of the character object is determined via the mouse position.

The way I intend for the movement to work is to move on the global axis regardless of the character rotation but it seems the CharacterController.SimpleMove function uses the local axis to determine the move direction.

Is there any way I can still use SimpleMove but force it to use the global axis instead of the local?

Kind Regards,
Dylan

try transforming the movement vector with the “TransformDirection” function, it transforms a vector from local space to global space.

http://unity3d.com/support/documentation/ScriptReference/Transform.TransformDirection.html