Velocity Relative to Rotation

Hi,

I am wanting to change an objects velocity relative to the y rotation. For example, when you change the velocity to go forward, the object will still move forward in it its local forward direction, rather than the world one.

Any help would be greatly appreciated.

Cheers,
Bradley.

Hi, using yourobject.transform.forward in an AddForce during FixedUpdate should do what you want (or directly adding this vector to the velocity).

transform.forward (or.left etc…) is the local forward vector transformed in world space.