Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | NWH:VehiclePhysics2:VehicleComponent [2023/05/16 16:08] (current) – [Scripting] nwhcoding | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Vehicle Component ====== | ||
+ | '' | ||
+ | '' | ||
+ | |||
+ | ===== State ===== | ||
+ | ==== Enabled / Disabled ==== | ||
+ | * '' | ||
+ | * Disabled components are not initialized until they get enabled for the first time. | ||
+ | * Disabling a '' | ||
+ | |||
+ | [{{ : | ||
+ | |||
+ | [{{ : | ||
+ | |||
+ | [{{ : | ||
+ | |||
+ | ==== LOD Index ==== | ||
+ | * If the component' | ||
+ | * Set '' | ||
+ | * If adjusting LODs through inspector click on the currently active LOD to disable LOD system. | ||
+ | |||
+ | ==== State Bar ==== | ||
+ | Each '' | ||
+ | [{{ : | ||
+ | This is where the state of the '' | ||
+ | |||
+ | == Using the State Bar == | ||
+ | * Click on " | ||
+ | * Click on " | ||
+ | * Click on any of the LOD numbers to set LOD. Click again on the same number to disable LODs. Component will be enabled if the current LOD number is green, and disabled if it is red. When LODs are active '' | ||
+ | [{{ : | ||
+ | |||
+ | ==== State Settings ==== | ||
+ | * To prevent having to adjust the states of each '' | ||
+ | * '' | ||
+ | * More about '' | ||
+ | |||
+ | ==== Scripting ==== | ||
+ | To change '' | ||
+ | |||
+ | < | ||
+ | myVehicleComponent.LodIndex = -1; // IMPORTANT! Setting this to -1 disables the | ||
+ | // LODs which otherwise override the enabled/ | ||
+ | myVehicleComponent.VC_Enable(); | ||
+ | myVehicleComponent.VC_Disable(); | ||
+ | </ | ||
+ | |||
+ | * All the '' |