Class ArcadeModuleWrapper
MonoBehaviour wrapper for the Arcade module.
Namespace: NWH.VehiclePhysics2.Modules.ArcadeModule
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
[DisallowMultipleComponent]
public class ArcadeModuleWrapper : ModuleWrapper
Remarks
Carries the MonoBehaviour lifecycle and serialization; the assist logic lives in module, which is also where runtime tuning and the drift angle read go. Add via Add Component > NWH > Vehicle Physics 2 > Modules > Arcade Module.
Fields
module
The ArcadeModule instance managed by this wrapper.
Declaration
public ArcadeModule module
Field Value
| Type | Description |
|---|---|
| ArcadeModule |
Methods
GetModule()
Returns the contained ArcadeModule as a VehicleComponent.
Declaration
public override VehicleComponent GetModule()
Returns
| Type | Description |
|---|---|
| VehicleComponent | The ArcadeModule instance cast to VehicleComponent. |
Overrides
SetModule(VehicleComponent)
Sets the contained module from a VehicleComponent reference.
Declaration
public override void SetModule(VehicleComponent module)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleComponent | module | The VehicleComponent to set, must be an ArcadeModule instance. |