NWH Vehicle Physics 2 Documentation
Docs ยป NWH:VehiclePhysics2:Modules:Trailer:TrailerHitchModule

Trailer Hitch Module

TrailerHitch module.

VehicleController with TrailerHitchModule can attach a VehicleController with TrailerModule as a trailer.

  • Both 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 AttachmentPoints 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.
  • On initialization a SphereCollider trigger is created at the attachment point. This is used to detect if a TrailerModule is nearby. When there is overlap between the TrailerModule and TrailerHitchModule triggers, pressing 'T' (default key mapping) will connect the trailer.

Also check Trailer module.

Previous Next

NWH Vehicle Physics 2 Documentation

Table of Contents

  • About
  • Setup
  • Input
  • Vehicle Controller
  • Wheel Controller
  • NWH Common Scripts
  • Trailers
  • GUI
  • Multiplayer
  • Render Pipelines
  • Add-ons
  • FAQ
  • Troubleshooting
  • Demos
  • Changelog
  • Upgrade Notes
  • Support