Setup example

Here is an example to set up using the SimpleAgent model included in Examples.

Creating an Agent object

  • Click the + button in the Hierarchy window.
  • Select “Arbor > Agent Controller” from the menu.

Deployment of SimpleAgent model

  • Drag and drop “Assets/Plugins/Arbor/Examples/Common/Models/SimpleAgent.fbx” to the child of the Agent object and place it.

(Rather than adding the AgentController directly to the GameObject created by arranging the model, it will be easier to replace the model later if it is divided into parent and child objects.)

SimpleAgent object settings

Animator

  • Select “Assets/Plugins/Arbor/Examples/Common/Models/SimpleAgent.controller” in the Controller field.

Agent object settings

  • Uncheck the Auto Traverse Off Mesh Link field.

AgentController

  • Select own NavMesh Agent in the Agent field.
  • In the Animator field, select the child SimplaAgent object Animator.
  • Select the Speed parameter in the Speed Parameter field.
  • Set the Speed Damp Time field to 0.1.

Jump Across

  • Select the Jumping parameter in the Parameter field.
  • Set 240 in the Angular Speed field.
  • Set the Jump Height field to 1.
  • Start Wait
    • Set Animation Event in the Type field.
    • Set JumpStart in the Event Name field.
  • End Wait
    • Set Animation Event in the Type field.
    • Set JumpEnd in the Event Name field.
  • Make the same settings as Jump Across.
    (If there is a falling motion when practicing, please set it as necessary)

Behavior control

You can move from State Machine or Behaviour Tree by using Agent behavior control. In addition, NavMesh is used to control the movement route, so a navigation mesh is required for the scene. For more information, see Building a NavMesh.