AgentController

Class in Arbor / Inherits from: UnityEngine.MonoBehaviour

Description

AI for the movement component that wraps the NavMeshAgent.
Used mainly through built-in Behavior's Agent.

Properties

Property Name Description
agent NavMeshAgent you want to control.
agentTransform Agent Transform
animator Animator you want to control.
isDivAgentSpeed Whether or not to divide by the speed set for Agent.
isDone Whether the move is complete or not.
isMoving Whether it is moving
movementDivValue The value to divide for velocity. (Used only when _MovementType is MovementType.DivValue)
movementType Type of movement vector.
movementXDampTime Dump time of X value of moving direction vector.
movementXParameter Specify the float parameter for setting the X value of the moving vector in the Agent's local space to Animator.
movementYDampTime Dump time of Y value of moving direction vector.
movementYParameter Specify the float parameter for setting the Y value of the moving direction vector in the Agent's local space to Animator.
movementZDampTime Dump time of Z value of moving direction vector.
movementZParameter Specify the float parameter for setting the Z value of the moving direction vector in the Agent's local space to Animator.
movingParameter Specify the bool parameter for setting to the Animator whether or not the Agent is moving.
movingSpeedThreshold Threshold value of the speed of moving
speedDampTime Dump time of moving speed.
speedParameter Specify the float parameter for setting the moving speed to Animator.
speedType The type of value to pass to the animator's Speed parameter.
turnDampTime Dump time in the turn direction.
turnParameter Specify the float parameter for setting the turn direction to Animator.
turnType Type of Turn.

Methods

Method Name Description
Escape Keep away from specified position
Follow It approaches the specified position
LookAt Rotate in the direction of the specified position.
MoveToRandomPosition Move towards a random position within a specified radius
Patrol Wander within specified radius
Resume Resume movement.
Stop Stop.
Warp Warps agent to the provided position.

Enums

Type Name Description
MovementType Type of movement vector
SpeedType The type of value to pass to the animator's Speed parameter.
TurnType Type of Turn