Animating Resources to Move along a Path
Animate resources such as vehicles or people to move along a user defined path.
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 Project Setup toolbox, select the 3D Line tool.
- Draw the desired path for your vehicle. The first point will define the start of the animation and the last will define the end.
- Define the 3D line settings like the name, line style, timeline connection and terrain projection from the side panel. Try to keep your lines correctly labelled to make it easy to identify and connect them to the objects in the next steps.
2. Add Resource to Scenario
- Add the desired object from the Resource Library and open the Visual Programming panel.
- 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.
- Once the file is uploaded, click on the Edit button to adjust the template.
3. Edit the Visual Programming Template
In the Visual Programming editor, perform the actions below to adjust the animation of the resource:
- Click on the Minimize button to visualize the 3D view
- Reconnect the Object input and output in the indicated boxes
- Switch the Object field to update with the current Resource
- Select the desired path based on the 3D line names
- Optional - Define the speed factor for the animation (higher values = faster movements)
- Optional - Define the start point for the animation (% of the total path)
- Optional - Define the path completion factor (% of the total path)
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:
- Move on Path : This is the template covered in this article
- Walking Man
- Woman with Stroller
- Two Paths and Reverse (Loop)
- Two Paths and Reverse (One-shot)
- One Path and Stop (Milestone Change Trigger)
- Truck Swept Path: Compatible with vehicles with a maximum of 2 axels.
Comments
Please sign in to leave a comment.