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
|
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
Create new IAWaypoints and move these to the desired positions in the scene view
Create a new RouteComponent
Add Waypoints untill the Route you want is defined
(Optionally define actions to do at set waypoints)
Define that the route has to be used in the ConstrainedModule in the TransferRoute’s
Test your setup in Playmode
Prespective Documentation