NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Trailers

    Demo truck and trailer in NWH Vehicle Physics 2

    Both truck and trailer in NVP2 use the same VehicleController script. Therefore, they should both be configured as a normal vehicle. Check Quick Start Guide for more info on vehicle setup.

    • Towing vehicle needs to have TrailerHitchModule attached.
    • Trailer vehicle needs to have TrailerModule attached.

    Click on the names of individual modules for more info.

    Tips

    • Since the trailer does not need all the vehicle components enabled as a full vehicle it is a good idea to use a separate State Settings for the towing vehicle and the trailer. Example TrailerStateSettings are included.
    • Due to the input mirroring between the towing vehicle and the trailer it is possible to use blinkers, effects, sounds, etc. on the trailer. It is even possible to make trailer powered by enabling Powertrain in trailer's state settings.

    Attaching Trailer

    • Trailer is attached by driving the vehicle so that the attachment points of both vehicles are close and pressing the TrailerAttachDetach ("T" by default) button.
    • Trailer attachment points work based on triggers. This is a SphereCollider whose radius can be set through the TrailerModule and TrailerHitchModule inspectors.

    Modules

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