Document toolboxDocument toolbox

2023.1.116.1 Route



Overview

This feature is used to set up a Route in an IA application, which Actors can follow. At the defined Waypoints in the Route other Actions can be executed.


Where to find

One can add the functionality of the Route manually by adding de RouteComponent to a GameObject.


Feature Layout

The image below shows the complete feature layout of the RouteComponent.

Route Settings

 

Color

The Color of the icon in the scene view

Show in scene view

Whether to draw the icons for the Route and the Waypoints

Route Definition

 

Add Waypoint

Adds an entry to the list of Waypoints

 

Move the Waypoint up in the Route definition

 

Move the Waypoint down in the Route definition

Target Waypoint

The Waypoint the Route will move to.

Add Action

Adds an action to execute when the actor has reached the waypoint

Action Type

The list of actions you can apply on this waypoint

  • No action

  • Set velocity

  • Set duration to next waypoint

 

Velocity

Sets the velocity of the Actor to the specified value from this waypoint onwards

 

Duration

Sets the velocity of the Actor so that it reaches the next waypoint in the specified duration

 


How to use

  1. Create new IAWaypoints and move these to the desired positions in the scene view

  2. Create a new RouteComponent

  3. Add Waypoints untill the Route you want is defined

  4. (Optionally define actions to do at set waypoints)

  5. Define that the route has to be used in the ConstrainedModule in the TransferRoute’s

  6. Test your setup in Playmode

Prespective Documentation