NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class TCSModuleWrapper

    MonoBehaviour wrapper for the Traction Control System (TCS) module. This wrapper allows the TCSModule to be attached as a component to a VehicleController GameObject.

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

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

    Fields

    module

    The TCS module instance that handles traction control functionality.

    Declaration
    public TCSModule module
    Field Value
    Type Description
    TCSModule

    Methods

    GetModule()

    Gets the TCS module instance.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The TCSModule instance as a VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the TCS module instance.

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

    The VehicleComponent to set as the TCS module.

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