NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class ESCModuleWrapper

    MonoBehaviour wrapper for the Electronic Stability Control (ESC) module. This wrapper allows the ESCModule to be attached as a component to a VehicleController GameObject.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    ModuleWrapper
    ESCModuleWrapper
    Namespace: NWH.VehiclePhysics2.Modules.ESC
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    [Serializable]
    [DisallowMultipleComponent]
    public class ESCModuleWrapper : ModuleWrapper
    Remarks

    The wrapper provides a Unity-friendly interface for the ESC module, enabling it to be managed through the VehicleController's module system. It handles module lifecycle and provides access to the underlying ESCModule functionality.

    Fields

    module

    The ESC module instance that handles electronic stability control functionality.

    Declaration
    public ESCModule module
    Field Value
    Type Description
    ESCModule

    Methods

    GetModule()

    Gets the ESC module instance.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The ESCModule instance as a VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the ESC module instance.

    Declaration
    public override void SetModule(VehicleComponent module)
    Parameters
    Type Name Description
    VehicleComponent module

    The VehicleComponent to set as the ESC module.

    Overrides
    ModuleWrapper.SetModule(VehicleComponent)
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics