Game Development Reference
In-Depth Information
Size
The size of the agent and their capsule representation is determined by the agent's height
and radius. When changing these values, the physics simulation will also adjust and create
a new representation for the agent based on the changes.
Height
Accessing the height of the agents can be done through the GetHeight and SetHeight
helper functions.
local height = agent:GetHeight();
agent:SetHeight(height);
Radius
To access and modify the radius of an agent, we can use the GetRadius and SetRadi-
us functions.
local radius = agent:GetRadius();
agent:SetRadius(radius);
Search WWH ::




Custom Search