Game Development Reference
In-Depth Information
Obstacle avoidance
A similar force to avoid other dynamic moving obstacles can be calculated using the
For-
ceToAvoidObjects
function.
local avoidObjectForce =
agent:ForceToAvoidObjects(minTimeToCollision);