Towing Vehicle Setup

Learn how to turn a simple vehicle into a towing machine.

1. Initialize a CustomVehicleController

Quick Setup

2. Create an empty gameobject

This object will represent the point of connection with the trailer (a hitch).

3. Add a tow hitch connector

Sphere Collider, and a new "HitchPoint" transfoms have been added. References has been automatically obtained.

Any collider will work as long as its set to "Is Trigger"

4. Adjust the hitch properties

Move the HitchPoint to the exact position where a pivot point of connection should be.

To find about about connection types and properties, go here.

5. Add a Truck Input Provider

The setup is done.

You can also use a prefab stored at CustomVehicleController/Demo/Prefabs/TruckSystems or create your own.

6. Adding more axles to the controller (Optional).

If your truck has more than 2 axles, you can easily add more from the "VehicleAxleWindow".

Simply drag and drop the wheel transform references into their respective fields and click "Add Axles". The newly created VehicleAxles will be added to the CustomVehicleController and CarVisualsEssentials scripts.

Last updated