TrailerConnector

TrailerConnector is a required component for a TrailerController.

Trailer Setup

Similarly to "TowHitchConnector", Trailer Connector has a Hitch Point which defines the pivot point of connection.

The "HitchPoint" was automatically added. Simply move the transform to the correct position.

On the "TrailerConnector" script you can also change the maximum rotation angles for the joint upon being connected to the truck.

This simply sets the values of some properties on the ConfigurableJoint on the same game object.

Upon adding TrailerController, the ConfigurableJoint will have it's most important properties set to correct values for expected trailer behavior. "Reset Joint Properties" button will once again set the properties. But if you want full reset, remove current ConfigurableJoint, add new one, drag and drop it intp "Joint" field and click "Reset Joint Properties"

Last updated