Game Development Reference
In-Depth Information
-- Apply a steering force to move the agent along the
path.
if (agent:HasPath()) then
local steeringForces = Soldier_CalculateSteering(
agent, deltaTimeInSeconds);
Soldier_ApplySteering(
agent, steeringForces, deltaTimeInSeconds);
end
end
The following screenshot shows you the agent running near to the obstacle:
Search WWH ::




Custom Search