Arbor: State Diagram Editor  2.2.0
AgentController Class Reference

AI for the movement component that wraps the NavMeshAgent. More...

Inheritance diagram for AgentController:

Public Member Functions

void Patrol (float speed, float radius)
 Prowl the within a specified radius from the start position More...
 
void Follow (float speed, float stoppingDistance, Transform target)
 Approach to the position of the specified Transform More...
 
void Escape (float speed, float distance, Transform target)
 Away from the specified Transform More...
 
void Stop ()
 Stop. More...
 

Properties

NavMeshAgent agent [get]
 
bool isDone [get]
 Whether the move is complete or not. More...
 
bool isMoving [get]
 

Detailed Description

AI for the movement component that wraps the NavMeshAgent.


Used mainly through built-in Behavior's Agent.

Member Function Documentation

void Escape ( float  speed,
float  distance,
Transform  target 
)

Away from the specified Transform

Parameters
speedMovement speed
distanceDistance away
targetTarget
void Follow ( float  speed,
float  stoppingDistance,
Transform  target 
)

Approach to the position of the specified Transform

Parameters
speedMovement speed
stoppingDistanceStopping distance
targetObjective point
void Patrol ( float  speed,
float  radius 
)

Prowl the within a specified radius from the start position

Parameters
speedMovement speed
radiusRadius from the starting position
void Stop ( )

Stop.

Property Documentation

NavMeshAgent agent
get
bool isDone
get

Whether the move is complete or not.

bool isMoving
get