NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Trailer Module

    TrailerModule inspector

    TrailerModule works in tandem with TrailerHitchModule. VehicleController that has TrailerModule is able attach to a VehicleController that has TrailerHitchModule.

    • One vehicle can have both TrailerHitchModule and TrailerModule.
    • Attachment Point is the point at which the trailer will be attached to the towing vehicle. The script creates a SphereCollider trigger at this point which detects if the TrailerHitchModule Attachment Point is nearby. Attachment Point needs to be a child of the GameObject containing the TrailerModule.
    • Trailer Stand is the object which will be enabled if the trailer is detached and vice versa. It prevents the trailer from tipping forward on trailers with only the back axle.
    • If Synchronize Gear Shifts is enabled the trailer object will be kept in the same gear. This allows for powered trailer or vehicles that are constructed out of two Rigidbodies.

    Also check Trailer Hitch module.

    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics