#more Natural Movement ?

1 messages · Page 1 of 1 (latest)

modern flame
#

Hi, I just started C# few days ago and i'm trying to build a plane that reach a point. I succeeded to make that but the movement is not ok for a plane. I want the plane to look at the point witch i have completed with a Quaternion that I found and don't understand but it work. Now I want the plane to move in the direction it is looking. How can I do that ?

#

just replace

#

transform.Translate(movementDirection * speed * Time.deltaTime, Space.World);
whith

#

transform.Translate(this.transform.up * speed * Time.deltaTime, Space.World);