Add Vector3 on local axis

Hello I’m using this code to move my object back a bit every frame

myObject.transform.localPosition -= new Vector3 (0,0,ammountToTakeOff);
I rotate “myObject” on the Y 90 degrees when I press D and -90 degrees when I press A.
But when I rotate my object It moves backwards on the world Z axis, I want it to move backwards on it’s Local Z axis. Thanks :slight_smile:

LOL Found the solution right after posting face plams, anyway for those of you who want to know I used this

myObject.transform.Translate (-myObject.forward * ammountToTakeOff,Space.World);