VehicleController
with TrailerHitchModule
can attach a VehicleController
with TrailerModule
as a trailer.
TrailerHitchModule
and TrailerModule
can be present on one vehicle at the same time.AttachmentPoint
is the point at which the trailer will be attached. The trailer will be moved so that both trailer and hitch AttachmentPoint
s are at the same position. This is where the physics joint gets created. Attachment Point
needs to be a child of the GameObject
containing the TrailerHitchModule
.TrailerModule
and TrailerHitchModule
triggers, pressing 'T' (default key mapping) will connect the trailer.Also check Trailer module.