Game Development Reference
In-Depth Information
Indirect control agent update
Updating an animation controller agent simply requires you to step up the controller to
handle commands:
IndirectSoldierAgent.lua :
function Agent_Update(agent, deltaTimeInMillis)
-- Draw the agent's cyclic path, offset slightly above
the
-- level geometry.
DebugUtilities_DrawPath(
agent:GetPath(), true, Vector.new(0, 0.02, 0));
-- Allow the soldier controller to update animations and
-- handle new commands.
_soldierController:Update(agent, deltaTimeInMillis);
end
Search WWH ::




Custom Search