Class ABSModuleWrapper
MonoBehaviour wrapper for the ABS module. This wrapper allows the ABSModule to be attached as a component to a VehicleController GameObject.
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
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. |