Dungeon Architect  17.0.0
SharpNav.Crowds Namespace Reference

Classes

class  Agent
 A crowd agent is a unit that moves across the navigation mesh More...
 
class  Crowd
 The Crowd class manages pathfinding for multiple agents simulatenously. More...
 
struct  CrowdNeighbor
 A neighboring crowd agent More...
 
struct  AgentParams
 Settings for a particular crowd agent More...
 
struct  AgentAnimation
 
class  LocalBoundary
 The LocalBoundary class stores segments and polygon indices for temporary use. More...
 
class  ObstacleAvoidanceQuery
 
class  PathCorridor
 
class  PathQueue
 
class  StatusExtensions
 A static class containing extension methods related to the Status enum.
 

Enumerations

enum class  AgentState { Invalid , Walking , Offmesh }
 Describes the current state of a crowd agent More...
 
enum class  Status { Failure , Success , InProgress }
 Similar to a boolean, except there is an intermediate variable between true and false. More...
 
enum class  TargetState {
  None , Failed , Valid , Requesting ,
  WaitingForQueue , WaitingForPath , Velocity
}
 This state changes depending on what the crowd agent has to do next More...
 
enum class  UpdateFlags {
  AnticipateTurns = 1 , ObstacleAvoidance = 2 , Separation = 4 , OptimizeVis = 8 ,
  OptimizeTopo = 16
}
 The UpdateFlag affects the way the agent moves acorss its path. More...
 

Enumeration Type Documentation

◆ AgentState

Describes the current state of a crowd agent

Enumerator
Invalid 

Not in any state

Walking 

Walking on the navigation mesh

Offmesh 

Handling an offmesh connection

Definition at line 12 of file CrowdAgentState.cs.

◆ Status

Similar to a boolean, except there is an intermediate variable between true and false.

Enumerator
Failure 

Operation failed to complete

Success 

Operation finished

InProgress 

Operation in progress

Definition at line 9 of file Status.cs.

◆ TargetState

This state changes depending on what the crowd agent has to do next

Enumerator
None 

Not in any state

Failed 

Failed to find a new path

Valid 

Target destination reached.

Requesting 

Requesting a new path

WaitingForQueue 

Add this agent to the crowd manager's path queue

WaitingForPath 

The agent is in the path queue

Velocity 

Changing its velocity

Definition at line 9 of file TargetState.cs.

◆ UpdateFlags

The UpdateFlag affects the way the agent moves acorss its path.

Enumerator
AnticipateTurns 

The agent will be making turns in its path

ObstacleAvoidance 

Avoid obstacles on the path

Separation 

Separate this agent from other agents

OptimizeVis 

Optimize if the agent can see the next corner

OptimizeTopo 

Optimize the agent's path corridor

Definition at line 12 of file UpdateFlags.cs.