Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Need vehilcal AI

Discussion in 'Scripting' started by zaptech123, Aug 20, 2014.

  1. zaptech123

    zaptech123

    Joined:
    Sep 2, 2013
    Posts:
    9
    Hi there,
    I am creating a vehical AI, all is working fine but I am not able to steer properly when detecting an obstacle,
    if anyone has any code example or suggestions please share.
    thanks
     
  2. domkia

    domkia

    Joined:
    Aug 19, 2012
    Posts:
    99
    flattutorials on youtube has some really great tutorials
     
  3. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    Do you mean opponent's car A.I?
     
  4. zaptech123

    zaptech123

    Joined:
    Sep 2, 2013
    Posts:
    9
    Yes.
     
  5. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    If you want it to be neutral (just riding to the finish line), you may use NavMesh which automatically makes it go to the specified target. I cannot give you neither code nor documentation, but YouTube is a great place to get started.