11.2 How to Animate Resources to Follow a Path

Available with the Following Subscriptions: All Subscriptions
Available for the Following Roles: All Roles

Animate Resources such as vehicles or people to move along a user defined path. 

Note if you are looking to animate Resource parameters (bones) refer to Animate Resource Parameters.

Watch this video or follow along the steps below to learn how to animate Resources to move along a user defined path. 


0. Initial Setup

Visual programming templates are preset packages of instructions for the resources. They can be used in several different ways and the file below refers exclusively to the animation of resources following a path:

1. Create a 3D line

This line will determine the path of the vehicle.

  • From the toolbar, click Annotate, then select Line.

Annotate menu in the toolbar with Line selected to draw a 3D line path for a resource animation

  • Draw the desired path for your vehicle. The first point will define the start of the animation and the last will define the end. Click Confirm to finish the line.

3D line drawn in plan view as a vehicle path, with the start and end points of the animation marked

  • In the line's side sheet, set the line style, Timeline visibility and Project on terrain as needed. Try to keep your lines correctly labelled to make it easy to identify and connect them to the objects in the next steps.

3D line side sheet with style, Timeline visibility and Project on terrain settings for the animation path

 

2. Add Resource to Scenario

  • Add the desired object from the Resource Library and open the Visual Programming panel.

Vehicle resource placed in the Scenario (1) with the Visual Prog. tab (2) in its side sheet

  • Upload the template you can find below in the Template section of this page, or another appropriate template. Note some resources already have a pre-set template, but you can still make edits or add a new template.
     

Vehicle Visual Prog. tab with the Visual programming template dropdown for uploading a template

  • Once the file is uploaded, click on the Edit button to adjust the template.

Vehicle Visual Prog. tab after uploading a template, with the Edit button to adjust it

 

3. Edit the Visual Programming Template

In the Visual Programming editor, perform the actions below to adjust the animation of the resource:

  1. Click on the Minimize button to visualize the 3D view
  2. Reconnect the Object input and output in the indicated boxes
  3. Switch the Object field to update with the current Resource
  4. Select the desired path based on the 3D line names
  5. Optional - Define the speed factor for the animation (higher values = faster movements)
  6. Optional - Define the start point for the animation (% of the total path)
  7. Optional - Define the path completion factor (% of the total path)

Visual Programming editor with the path-following node graph beside the vehicle in the Scenario

 

Once you are done, close the Visual Programming editor, review the animation results and make the necessary adjustments.


Swept Path Animation

You can also create swept path animations to evaluate the space required for turning maneuvers, using the Move on Path animation method. Watch this video to learn how:


Templates

Click on the links below to download other Visual Programming templates for moving resources along a path:

Was this article helpful?
6 out of 6 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section