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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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 Moderator

    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 Moderator

    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...