Skip to content

Commit

Permalink
Added UpdateRotation property to CustomNavMeshAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
jadvrodrigues committed Dec 18, 2020
1 parent e0512db commit da65aef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Assets/CustomNavMesh/Scripts/CustomNavMeshAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,15 @@ public int AvoidancePriority
set { m_AvoidancePriority = value; NavMeshAgent.avoidancePriority = value; onChange?.Invoke(); }
}

/// <summary>
/// Should the agent update the transform orientation?
/// </summary>
public bool UpdateRotation
{
get { return NavMeshAgent.updateRotation; }
set { NavMeshAgent.updateRotation = value; }
}

[SerializeField] float m_TimeToBlock = 1.0f;
/// <summary>
/// Time in seconds needed for the hidden agent to switch from agent to obstacle,
Expand Down

0 comments on commit da65aef

Please sign in to comment.