AgentController

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

AgentController

Properties

Property Name Description
Agent NavMeshAgent you want to control.
Animator Animator you want to control.
Moving Parameter Specify the bool parameter for setting to the Animator whether or not the Agent is moving.
Moving Speed Threshold Threshold value of the speed of moving
Speed Parameter Specify the float parameter to set the moving speed to Animator.
Speed Type The type of value to pass to the animator's Speed parameter.
Not Change
Set the magnitude of NavMeshAgent.velocity as it is.
Div Speed
Divide the magnitude of NavMeshAgent.velocity by NavMeshAgent.speed
Div Value
Divide the magnitude of NavMeshAgent.velocity by the specified value
Speed Div Value The value to divide for Speed. (Used only when _SpeedType is SpeedType.DivValue)
Speed Damp Time Dump time of moving speed.
Movement Type Type of movement vector.
Not Change
Use the value of NavMeshAgent.velocity in the local coordinate system as it is.
Normalize
Use the normalized value of NavMeshAgent.velocity in the local coordinate system.
Div Speed
Use the value of NavMeshAgent.velocity in the local coordinate system divided by NavMeshAgent.speed.
Div Value
Use the value of NavMeshAgent.velocity in the local coordinate system divided by MovementDivValue.
Movement Div Value The value to divide for velocity. (Used only when _MovementType is MovementType.DivValue)
Movement X Parameter Specify the float parameter for setting the X value of the moving vector in the Agent's local space to Animator.
Movement X Damp Time Dump time of X value of moving vector.
Movement Y Parameter Specify the float parameter for setting the Y value of the moving vector in the Agent's local space to Animator.
Movement Y Damp Time Dump time of Y value of moving vector.
Movement Z Parameter Specify the float parameter for setting the Z value of the moving vector in the Agent's local space to Animator.
Movement Z Damp Time Dump time of Z value of moving vector.
Turn Parameter Specify the float parameter for setting the turn direction to Animator.
Turn Type Type of Turn.
Use X
Use the X value of NavMeshAgent.velocity in the normalized local coordinate system.
Radian Angle
Calculate the radian angle from the XZ value of NavMeshAgent.velocity in the normalized local coordinate system.
Turn Damp Time Dump time in the turn direction.
Sample Position Enabled Flag to find a position on the NavMesh that is within the Sample Position Distance to the destination.
Sample Position Distance Distance to perform SamplePosition
Enable Traverse Off Mesh Link Enable processing to pass OffMeshLink
If enabled, NavMeshAgent.autoTraverseOffMeshLink must be false.
Jump Across Specify the traverse method when jumping over OffMeshLink.
Used when OffMeshLink is OffMeshLinkType.LinkTypeJumpAcross or OffMeshLinkType.LinkTypeManual(without OffMeshLinkSettings).
Field NameDescription
ParameterBool type parameter to be True during traverse
Angular SpeedThe speed of rotation in the traverse direction
Jump HeightHeight to jump
If 0 is specified, it moves linearly.
Min SpeedMinimum movement speed. Use the faster one compared to NavMeshAgent.speed.
Start WaitWaiting setting from turning around to starting traversing.
Field NameDescription
TypeHow to wait
None
Don't wait.
Time
Wait for the passage of time
Animation Event
Wait for the Animation Event.
Set AnimationTriggerEventReceiver in the same GameObject as the Animator component, and call AnimationTriggerEventReceiver.Trigger in AnimationEvent to end the wait.
TimeWait time (used when type is set to WaitType.Time)
Event NameThe name of the Animation Event
Set the same name as the argument string of the Trigger method to be called.
End WaitWaiting setting from the end of traversal to the switch to move to the NavMesh.
Field NameDescription
TypeHow to wait
None
Don't wait.
Time
Wait for the passage of time
Animation Event
Wait for the Animation Event.
Set AnimationTriggerEventReceiver in the same GameObject as the Animator component, and call AnimationTriggerEventReceiver.Trigger in AnimationEvent to end the wait.
TimeWait time (used when type is set to WaitType.Time)
Event NameThe name of the Animation Event
Set the same name as the argument string of the Trigger method to be called.
Drop Down Off Specifies the traverse method when jumping off MeshLink.
Used when OffMeshLink is OffMeshLinkType.LinkTypeDropDown.
Field NameDescription
ParameterBool type parameter to be True during traverse
Angular SpeedThe speed of rotation in the traverse direction
Jump HeightHeight to jump
If 0 is specified, it moves linearly.
Min SpeedMinimum movement speed. Use the faster one compared to NavMeshAgent.speed.
Start WaitWaiting setting from turning around to starting traversing.
Field NameDescription
TypeHow to wait
None
Don't wait.
Time
Wait for the passage of time
Animation Event
Wait for the Animation Event.
Set AnimationTriggerEventReceiver in the same GameObject as the Animator component, and call AnimationTriggerEventReceiver.Trigger in AnimationEvent to end the wait.
TimeWait time (used when type is set to WaitType.Time)
Event NameThe name of the Animation Event
Set the same name as the argument string of the Trigger method to be called.
End WaitWaiting setting from the end of traversal to the switch to move to the NavMesh.
Field NameDescription
TypeHow to wait
None
Don't wait.
Time
Wait for the passage of time
Animation Event
Wait for the Animation Event.
Set AnimationTriggerEventReceiver in the same GameObject as the Animator component, and call AnimationTriggerEventReceiver.Trigger in AnimationEvent to end the wait.
TimeWait time (used when type is set to WaitType.Time)
Event NameThe name of the Animation Event
Set the same name as the argument string of the Trigger method to be called.