Game Development Reference
In-Depth Information
Path
An agent's path is a series of vector points that the agent uses internally to determine where
to move to during path following. Allowing agents to remember their path is a small optim-
ization to avoid having to pass around the path itself during path following calculations.
When assigning a path to the agent, we can pass an optional Boolean in order to let the
agent know whether the path should loop.
local pathTable = agent:GetPath();
local hasPath = agent:HasPath();
local path = {
Vector.new(0, 0, 0),
Vector.new(10, 0, 10),
Vector.new(0, 0, 10) };
agent:SetPath(path, cylic);
Search WWH ::




Custom Search