Search Unity

How to make object move on predefined path?

Discussion in 'Physics' started by JoseUB, Jan 8, 2019.

  1. JoseUB

    JoseUB

    Joined:
    Nov 21, 2011
    Posts:
    5
    Hello!

    How can I make my truck turn left on intersection? Even if I add some simple controls like gas/brake, it should move only on predefined path, like on rails. Thank you!

     
  2. WashingMachine

    WashingMachine

    Unity Technologies

    Joined:
    Mar 23, 2017
    Posts:
    24
    Have you thought about using a Navigation Mesh and a Navigation Agent for the truck?
     
    JoseUB likes this.
  3. JoseUB

    JoseUB

    Joined:
    Nov 21, 2011
    Posts:
    5
    Thank you so much! I think that is the solution to my problem))