diff --git a/Assets/CustomNavMesh/Scripts/CustomNavMeshAgent.cs b/Assets/CustomNavMesh/Scripts/CustomNavMeshAgent.cs
index ceaf830..1b4591f 100644
--- a/Assets/CustomNavMesh/Scripts/CustomNavMeshAgent.cs
+++ b/Assets/CustomNavMesh/Scripts/CustomNavMeshAgent.cs
@@ -218,6 +218,15 @@ public int AvoidancePriority
set { m_AvoidancePriority = value; NavMeshAgent.avoidancePriority = value; onChange?.Invoke(); }
}
+ ///
+ /// Should the agent update the transform orientation?
+ ///
+ public bool UpdateRotation
+ {
+ get { return NavMeshAgent.updateRotation; }
+ set { NavMeshAgent.updateRotation = value; }
+ }
+
[SerializeField] float m_TimeToBlock = 1.0f;
///
/// Time in seconds needed for the hidden agent to switch from agent to obstacle,