Class ESCModuleWrapper
MonoBehaviour wrapper for Electronic Stability Control (ESC). Lets ESCModule be attached to a VehicleController GameObject.
Namespace: NWH.VehiclePhysics2.Modules.ESC
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
[DisallowMultipleComponent]
public class ESCModuleWrapper : ModuleWrapper
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
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. |