Trailers

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 Settingsfor the towing vehicle and the trailer. ExampleTrailerStateSettingsare 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
Powertrainin 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
TrailerModuleandTrailerHitchModuleinspectors.