I am making a basic movement script based off of the built in playercontroller in Unity. I am trying to get the Player gameobject to move forward based on its own rotation (i.e. if it is rotated to 90 degrees, it will go forward in the direction it is facing and not based off of its position values), but I can't figure out how to change it.
How can I do this?
EDIT: I figured it out. I just had to multiply the playercontroller's movement by player rotation.