MarkusKer
Member
Hello, to me it looks like the surround behavior tree task stops updating the agent rotation after reaching the destination. After the destination is changed to another location the agents moves without updating the rotation according to the navmash agent's direction. I was able to trace it back to the "NavMeshAgentMovement" script.
There the "m_NavMeshAgent.updateRotation" value is false after reaching the target. I understand this must have to do with not wanting the agent to rotate at the destination. However, it seems like the "m_NavMeshAgent.updateRotation" value is not set back to "true". Following this logic, the Stop() and OnEnd() functions are responsible for setting the value to "true".
Those functions are not being called from the "surround task" as it is continuous.
I am unsure how I can fix this issue or how to reenable the value in a safe way. My attempts ended with the agent jittering.
Regards,
Markus
There the "m_NavMeshAgent.updateRotation" value is false after reaching the target. I understand this must have to do with not wanting the agent to rotate at the destination. However, it seems like the "m_NavMeshAgent.updateRotation" value is not set back to "true". Following this logic, the Stop() and OnEnd() functions are responsible for setting the value to "true".
Those functions are not being called from the "surround task" as it is continuous.
I am unsure how I can fix this issue or how to reenable the value in a safe way. My attempts ended with the agent jittering.
Regards,
Markus