Search Unity

Nav Mesh use impulses

Discussion in 'Scripting' started by noatom, Apr 19, 2014.

  1. noatom

    noatom

    Joined:
    Apr 9, 2014
    Posts:
    21
    Is there any way in which I could make an object move by impulse, and not by the default translation the nav mesh agent does?
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Only if you move it yourself. You can get an array of positions back from navmesh and use that, but move it yourself.
     
  3. noatom

    noatom

    Joined:
    Apr 9, 2014
    Posts:
    21
    how should I go about that? set the speed to 0 and then just do as you say, move it according to the data i get?
     
  4. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Well you'd be in charge of the entire movement - ie a character controller or physical object. You'd just be using navmesh to generate a set of points you can use however you like...