# AgentController

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

![AgentController](./images/AgentController.png)

## Properties

<table border="1" class="docutils">
<thead>
<tr><th>Property Name</th><th>Description</th></tr>
</thead>
<tbody valign="top">
<tr>
<td>
Agent
</td>
<td>
NavMeshAgent you want to control.
</td>
</tr>
<tr>
<td>
Animator
</td>
<td>
Animator you want to control.
</td>
</tr>
<tr>
<td>
Moving Parameter
</td>
<td>
Specify the bool parameter for setting to the Animator whether or not the Agent is moving.
</td>
</tr>
<tr>
<td>
Moving Speed Threshold
</td>
<td>
Threshold value of the speed of moving
</td>
</tr>
<tr>
<td>
Speed Parameter
</td>
<td>
Specify the float parameter for setting the moving speed to Animator.
</td>
</tr>
<tr>
<td>
Is Div Agent Speed
</td>
<td>
Whether or not to divide by the speed set for Agent.
</td>
</tr>
<tr>
<td>
Speed Damp Time
</td>
<td>
Dump time of moving speed.
</td>
</tr>
<tr>
<td>
Movement Type
</td>
<td>
Type of movement vector.<dl class="docutils">
<dt>Not Change</dt><dd>
            Use the value of NavMeshAgent.velocity as it is.
            </dd>
<dt>Normalize</dt><dd>
            Use the normalized value of NavMeshAgent.velocity.
            </dd>
<dt>Div Speed</dt><dd>
            Use the value obtained by dividing NavMeshAgent.velocity by NavMeshAgent.speed.
            </dd>
<dt>Div Value</dt><dd>
            Use the value obtained by dividing NavMeshAgent.velocity by MovementDivValue.
            </dd>
</dl>
</td>
</tr>
<tr>
<td>
Movement Div Value
</td>
<td>
The value to divide for velocity. (Used only when _MovementType is MovementType.DivValue)
</td>
</tr>
<tr>
<td>
Movement X Parameter
</td>
<td>
Specify the float parameter for setting the X value of the moving vector in the Agent's local space to Animator.
</td>
</tr>
<tr>
<td>
Movement X Damp Time
</td>
<td>
Dump time of X value of moving direction vector.
</td>
</tr>
<tr>
<td>
Movement Y Parameter
</td>
<td>
Specify the float parameter for setting the Y value of the moving direction vector in the Agent's local space to Animator.
</td>
</tr>
<tr>
<td>
Movement Y Damp Time
</td>
<td>
Dump time of Y value of moving direction vector.
</td>
</tr>
<tr>
<td>
Movement Z Parameter
</td>
<td>
Specify the float parameter for setting the Z value of the moving direction vector in the Agent's local space to Animator.
</td>
</tr>
<tr>
<td>
Movement Z Damp Time
</td>
<td>
Dump time of Z value of moving direction vector.
</td>
</tr>
<tr>
<td>
Turn Parameter
</td>
<td>
Specify the float parameter for setting the turn direction to Animator.
</td>
</tr>
<tr>
<td>
Turn Type
</td>
<td>
Type of Turn.<dl class="docutils">
<dt>Use X</dt><dd>
            Use the X value of the orientation vector.
            </dd>
<dt>Radian Angle</dt><dd>
            Calculate the radian angle from the XZ value of the direction vector.
            </dd>
</dl>
</td>
</tr>
<tr>
<td>
Turn Damp Time
</td>
<td>
Dump time in the turn direction.
</td>
</tr>
 </tbody>
</table>

