A crowd agent is a unit that moves across the navigation mesh
More...
|
float | topologyOptTime |
|
float | DesiredSpeed |
|
Vector3 | Disp |
|
Vector3 | DesiredVel |
|
Vector3 | NVel |
|
Vector3 | Vel |
|
AgentParams | Parameters |
|
Vector3[] | CornerVerts |
|
int[] | CornerFlags |
|
int[] | CornerPolys |
|
int | TargetRef |
|
int | TargetPathqRef |
|
bool | TargetReplan |
|
float | TargetReplanTime |
|
|
const int | AgentMaxNeighbors = 6 |
|
A crowd agent is a unit that moves across the navigation mesh
Definition at line 21 of file Agent.cs.
◆ Integrate()
void SharpNav.Crowds.Agent.Integrate |
( |
float |
dt | ) |
|
Update the position after a certain time 'dt'
- Parameters
-
Definition at line 226 of file Agent.cs.
◆ RequestMoveTarget()
bool SharpNav.Crowds.Agent.RequestMoveTarget |
( |
int |
reference, |
|
|
Vector3 |
pos |
|
) |
| |
Request a new move target
- Parameters
-
reference | The polygon reference |
pos | The target's coordinates |
- Returns
- True if request met, false if not
Definition at line 292 of file Agent.cs.
◆ RequestMoveTargetReplan()
void SharpNav.Crowds.Agent.RequestMoveTargetReplan |
( |
int |
reference, |
|
|
Vector3 |
pos |
|
) |
| |
Change the move target
- Parameters
-
reference | The polygon reference |
pos | The target's coordinates |
Definition at line 273 of file Agent.cs.
◆ RequestMoveVelocity()
void SharpNav.Crowds.Agent.RequestMoveVelocity |
( |
Vector3 |
vel | ) |
|
Request a new move velocity
- Parameters
-
Definition at line 314 of file Agent.cs.
◆ ResetMoveTarget()
void SharpNav.Crowds.Agent.ResetMoveTarget |
( |
| ) |
|
Reset the move target of an agent
Definition at line 327 of file Agent.cs.
◆ UpdateAgentParameters()
void SharpNav.Crowds.Agent.UpdateAgentParameters |
( |
AgentParams |
parameters | ) |
|
Modify the agent parameters
- Parameters
-
parameters | The new parameters |
Definition at line 341 of file Agent.cs.
The documentation for this class was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/Crowds/Agent.cs