public void StopSteering() { m_bArrived = false; m_path = null; //rigidbody.velocity = Vector3.zero; m_wantedVelocity = Vector3.zero; }
//private IPathTerrain m_pathTerrain; #endregion #region MonoBehaviour Functions void Awake() { m_path = null; m_bArrived = false; //m_pathTerrain = null; m_pathStep = new PahtwayStep(); }
public void SteerAlongPath(Vector3[] path, IPathTerrain pathTerrain) { //m_pathTerrain = pathTerrain; m_bArrived = false; m_path = new PolylinePathway(path.Length, path); m_path_index = 0; m_seekPos = m_path.Points[m_path_index]; transform.position = m_seekPos; }
void Awake() { m_path = null; m_bArrived = false; m_pathTerrain = null; }
public void SteerAlongPath(Vector3[] path, IPathTerrain pathTerrain) { m_pathTerrain = pathTerrain; m_bArrived = false; m_path = new PolylinePathway(path.Length, path); }
public void StopSteering() { m_bArrived = false; m_path = null; GetComponent <Rigidbody>().velocity = Vector3.zero; }
public void StopSteering() { m_bArrived = false; m_path = null; rigidbody2D.velocity = Vector2.zero; }
public void StopSteering() { m_bArrived = false; m_path = null; rigidbody.velocity = Vector3.zero; }