NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class TrailerHitchTriggerRelay

    Routes trigger messages from the hitch detector itself to its owning wrapper.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    TrailerHitchTriggerRelay
    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
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics