- Home /
Vector3.forward question
Hello everyone,
I've got a question related to the Vector3.forward, I want my character to move forward, but when I reffer to Vector3.forward, it gets the global z axis of my character, instead of the local z axis which is the one I want. How can I solve this? Is there a way I can get the local Vector3.forward?
Comment
Best Answer
Answer by Ziad · Aug 19, 2011 at 02:33 PM
use
transform.forward
this will use the local z axis