- Home /
Question by
Eduard6421 · Mar 18, 2019 at 12:59 PM ·
collisionpathfindingartificial intelligencesteeringavoidance
How to combine NavMesh Agent with Character Controller
Hello!
I implemented multiple Steering Behaviours such as : Seek / Flee / Look and Run / Arrive / Wander etc.
Currently I'm trying to make use of Unity's path-finding system and RVO. I want the Navmesh Agent to correctly calculate a path based on the velocitiy of the character and the velocities of other agents and send the path to the Character Controller. Afterwards the Character Controller will make use of the implemented behaviours to follow the given path. I'm not sure which data i need to update in the Navmesh Agent so that it correctly calculates the RVO avoidance. I presume I'll have to disable the NavmeshAgent steering like this:
void Awake() {
this.NavAgent.updatePosition = false;
this.NavAgent.updateRotation = false;
}
And somehow update the velocities returned by the steering behaviours into the navmesh agent?
Comment