Class NOSModuleWrapper
MonoBehaviour wrapper for the NOS module. Goes on a GameObject that already has a VehicleController; registration and lifecycle are handled by ModuleWrapper.
Namespace: NWH.VehiclePhysics2.Modules.NOS
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
[DisallowMultipleComponent]
public class NOSModuleWrapper : ModuleWrapper
Fields
module
The wrapped NOS module instance. Holds all NOS config and runtime state.
Declaration
public NOSModule module
Field Value
| Type | Description |
|---|---|
| NOSModule |
Methods
GetModule()
Gets the wrapped module as a VehicleComponent.
Declaration
public override VehicleComponent GetModule()
Returns
| Type | Description |
|---|---|
| VehicleComponent | The NOSModule instance cast to VehicleComponent |
Overrides
SetModule(VehicleComponent)
Sets the wrapped module from a VehicleComponent reference.
Declaration
public override void SetModule(VehicleComponent module)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleComponent | module | The VehicleComponent to wrap, must be a NOSModule instance |