Our character plugin provides a simple Waypoint system in the form of a Blueprint.
Finding the Blueprint
First make sure that "Show Plugin Content" is enabled in the Content Browser and then navigate to the Character Plugin folder.
In the Character Plugin folder simply navigate to Blueprints/Waypoints and place the Waypoint Blueprint into the scene.
The Waypoint Blueprint
In the details panel of the Waypoint you can see three parameters:
Parameter | Details |
---|---|
Waypoint Order | Specify the order in which the VH will traverse the Waypoints |
Walking Speed | The speed at which the VH will walk towards this Waypoint |
Waypoint Group | To link the Waypoint to a VH |
The number on the Waypoints indicates the Waypoint Group. The color changes accordingly.
Setting up the VH
Besides setting up the Waypoints, we also have to set up the VH. To do this select the VHMovement component in the details panel. Under the header Waypoint Movement you will find the following parameters:
Parameter | Details |
---|---|
Waypoint Group | To link the VH to a Waypoint. VH will gather all Waypoints matching its Waypoint Group and store them in an array |
Loop | If true the VH will walk back to the first Waypoint when arriving at the last |
Waypoint Order | Affects the sorting of the Waypoints Array and therefore the order in which the VH traverses the Waypoints |
Waypoint Order has three different modes:
Parameter | Details |
---|---|
Manual | Orders the Waypoints according to the value Waypoint Order specified in the individual Waypoint |
Random | Sorts the Waypoints randomly |
Closest | VH will always walk to the closest Waypoint. The First Waypoint will be the one closest to the initial position of the VH. Second Waypoint will be the one closest to the first Waypoint... |
An example implementation of the Waypoint system can be found on the LocomotionTest Map
|
---|