Search Unity

checking navmesh movement speed, not maximum speed

Discussion in 'Scripting' started by Rob-Reijnen, Aug 1, 2014.

  1. Rob-Reijnen

    Rob-Reijnen

    Joined:
    Oct 14, 2013
    Posts:
    60
    Hi guys,

    Is there a way for me to return the speed that my navmesh has?
    I want to have the speed that it has at that particular moment, not the maximum speed.

    I couldn`t think of a proper way so I thought about checking the distance of the previous position and calculating the speed in that way.
     
  2. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815