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?

use

transform.forward

this will use the local z axis