Game Development Reference
In-Depth Information
The max speed
To set and access the max speed property of our agents, we can use the
GetMaxSpeed
and
SetMaxSpeed
functions.
local maxSpeed = agent:GetMaxSpeed();
agent:SetMaxSpeed(maxSpeed);