Game Development Reference
In-Depth Information
Updating an agent position
To start moving an agent around directly, we can set the agent's position. As agents are sim-
ulated within the physics simulation, they will fall to the ground if they are positioned in
the air or will be pushed to the top of the ground plane if placed below:
-- Position in meters.
local position = Vector.new(
xCoordinate, yCoordinate, zCoordinate);
Agent.SetPosition(agent, position);
Search WWH ::




Custom Search