Question on adding force?

I’m adding force to a space ship to move it forward, however when I rotate the ship I need it to move in the direction its facing.

How do I modify this code to make the ship move in the direction its facing?

rigidbody.AddForce (Vector3.forward * speed);

AddRelativeForce

–Eric

1 Like