Table of Contents

Vehicle Component

VehicleComponent is a building block of NWH Vehicle Physics 2.
VehicleController is a collection of VehicleComponents, which includes VehicleModules, Effects and SoundComponents - both of which inherit from VehicleComponent.

State

Enabled / Disabled

Enabled VehicleComponent.
Disabled VehicleComponent.
VehicleComponent Enabled/Disabled is controlled by LOD.

LOD Index

State Bar

Each VehicleComponent has a state bar which is visible in play mode:

State Bar of the SkidmarkManager.

This is where the state of the VehicleComponent can be checked and changed. Note that changing the state through state bar only affects runtime values and will revert after exiting play mode. The state bar is intended for previewing the current state and testing different values during run-time. For persistent state check StateSettings.

Using the State Bar
State bar with the LODs enabled.

State Settings

Scripting

To change VehicleComponent state through scripting following can be done:

myVehicleComponent.LodIndex = -1; // IMPORTANT! Setting this to -1 disables the 
                                  // LODs which otherwise override the enabled/disabled setting.
myVehicleComponent.VC_Enable();
myVehicleComponent.VC_Disable();