Game Development Reference
In-Depth Information
Collision avoidance
To calculate the force to avoid other agents, based on the minimum time, to collide with
other agents, we can use the
ForceToAvoidAgents
function.
local avoidAgentForce =
agent:ForceToAvoidAgents(minTimeToCollision);