Class TrailerHitchTriggerRelay
Routes trigger messages from the hitch detector itself to its owning wrapper.
Namespace: NWH.VehiclePhysics2.Modules.Trailer
Assembly: NWH.VehiclePhysics2.dll
Syntax
[AddComponentMenu("")]
[DisallowMultipleComponent]
public sealed class TrailerHitchTriggerRelay : MonoBehaviour
Remarks
Lives on the detector child, not on the vehicle Rigidbody GameObject. Unity sends trigger messages to the Rigidbody for every collider in a compound body, so these methods on the root wrapper would feed unrelated vehicle contacts into the trailer-hitch path.
Properties
Owner
Wrapper that owns this runtime-created detector.
Declaration
public TrailerHitchModuleWrapper Owner { get; }
Property Value
| Type | Description |
|---|---|
| TrailerHitchModuleWrapper |