NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class ABSModuleWrapper

    MonoBehaviour wrapper for the ABS module. This wrapper allows the ABSModule to be attached as a component to a VehicleController GameObject.

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

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

    Fields

    module

    The ABS module instance that handles anti-lock braking functionality.

    Declaration
    public ABSModule module
    Field Value
    Type Description
    ABSModule

    Methods

    GetModule()

    Gets the ABS module instance.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The ABSModule instance as a VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the ABS module instance.

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

    The VehicleComponent to set as the ABS module.

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