Class RiggingModuleWrapper
MonoBehaviour wrapper for the RiggingModule, procedural bone animation for suspension arms, axles and steering linkages. Goes on a GameObject that has a VehicleController.
Namespace: NWH.VehiclePhysics2.Modules.Rigging
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
[DisallowMultipleComponent]
public class RiggingModuleWrapper : ModuleWrapper
Fields
module
The wrapped RiggingModule instance. Holds the bone definitions and their animation settings.
Declaration
public RiggingModule module
Field Value
| Type | Description |
|---|---|
| RiggingModule |
Methods
GetModule()
Gets the wrapped module as a VehicleComponent.
Declaration
public override VehicleComponent GetModule()
Returns
| Type | Description |
|---|---|
| VehicleComponent | The RiggingModule 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 RiggingModule instance |