Game Development Reference
In-Depth Information
Fleeing
Creating a fleeing steering behavior is nearly identical to a seeking steering behavior. The
only difference is that the agent will move away from its target instead of moving toward
the target. Requesting a fleeing force can be done through the
Agent.ForceToFleePosition function:
local forceToFlee = agent:ForceToFleePosition(position);
Search WWH ::




Custom Search