Contenu principal

Design Vehicle with Trailer Scenario

Add Vehicle with Trailer to Scene

To add a vehicle with a trailer to a scenario, follow these steps.

Note

The vehicle images shown in this example are from the RoadRunner Asset Library. For more information on the RoadRunner Asset Library, see RoadRunner Asset Library product page.

  1. From the Library Browser, drag a parent vehicle into the scene. This image shows the SemiTruck vehicle asset placed into the scene.

    Lead truck without trailer

  2. From the Library Browser, drag a trailer onto the lead vehicle in the scene. RoadRunner Scenario automatically assigns the trailer as the child vehicle to the lead vehicle, which becomes the parent vehicle. This image shows the SemiTruck vehicle asset with the SemiTruck_Trailer1 vehicle asset attached as a child.

    Note

    You can also assign the parent vehicle by using the Parent Attachment attribute in the Connection Attributes section of the Attributes pane of the trailer.

    Lead truck with attached trailer

  3. You can adjust the position of the trailer, relative to attachment point on the parent vehicle, by using the Parent Attachment Point attributes of the trailer. This image shows the Forward offset attribute of the trailer set to 1.00 m.

    Lead truck with repositioned trailer

Trailers in Simulation

The trailer or child vehicle attached to a parent vehicle can behave in one of two ways: fixed to the parent vehicle, or dynamically attached to the parent vehicle through a hitch. In the trailer vehicle attributes, set Connection Attributes > Type to trailer, this animation shows a sample truck with a trailer turning a corner, with the trailer moving dynamically relative to the truck.

Truck with dynamic trailer

In the trailer vehicle attributes, set Connection Attributes > Type to fixed, this animation shows a sample truck with a trailer turning a corner with the trailer fixed to the truck.

Truck with fixed trailer

Multi-Vehicle Trailers

A trailer can also act as a parent for another trailer. You can combine multiple vehicles as trailers to create more advanced vehicles in a scene, such as multi-trailer trucks or trailers with cars on the trailer deck. This image shows a sample of attached Truck and SemiTruck_Trailer01 vehicle assets with the Sedan vehicle attached as a fixed child to the SemiTruck_Trailer01 asset.

Truck and trailer with sedan

See Also