Class VehicleSetupWizardPreset
Configuration preset for VehicleSetupWizard that defines vehicle-type-specific settings. Contains parameters for physical properties, powertrain, suspension, and dimensions. Create via Assets > Create > NWH > Vehicle Physics 2 > Vehicle Setup Wizard Preset.
Namespace: NWH.VehiclePhysics2.SetupWizard
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
[CreateAssetMenu(fileName = "NWH Vehicle Physics 2", menuName = "NWH/Vehicle Physics 2/Vehicle Setup Wizard Preset", order = 1)]
public class VehicleSetupWizardPreset : ScriptableObject
Fields
drivetrainConfiguration
Determines which wheels receive power from the engine.
Declaration
[Tooltip("Drivetrain")]
public VehicleSetupWizardPreset.DrivetrainConfiguration drivetrainConfiguration
Field Value
| Type | Description |
|---|---|
| VehicleSetupWizardPreset.DrivetrainConfiguration |
engineMaxRPM
Maximum engine RPM before the rev limiter activates.
Declaration
public float engineMaxRPM
Field Value
| Type | Description |
|---|---|
| float |
enginePower
Maximum engine power output in kilowatts (kW).
Declaration
[Range(10, 600)]
[Tooltip("Engine")]
public float enginePower
Field Value
| Type | Description |
|---|---|
| float |
height
Vehicle height in meters.
Declaration
public float height
Field Value
| Type | Description |
|---|---|
| float |
length
Vehicle length in meters.
Declaration
public float length
Field Value
| Type | Description |
|---|---|
| float |
mass
Total mass of the vehicle in kilograms (kg).
Declaration
[Tooltip("Physical properties")]
public float mass
Field Value
| Type | Description |
|---|---|
| float |
suspensionStiffnessCoeff
Multiplier for suspension stiffness. Values above 1 make suspension stiffer, below 1 make it softer.
Declaration
[FormerlySerializedAs("suspensionStiffness")]
public float suspensionStiffnessCoeff
Field Value
| Type | Description |
|---|---|
| float |
suspensionTravelCoeff
Multiplier for suspension travel distance. Values above 1 increase travel, below 1 decrease it. Longer travel is better for off-road, shorter for racing.
Declaration
[FormerlySerializedAs("suspensionTravel")]
public float suspensionTravelCoeff
Field Value
| Type | Description |
|---|---|
| float |
transmissionGearing
Final gear ratio multiplier. Values above 1 result in shorter gearing (better acceleration, lower top speed), below 1 result in longer gearing (lower acceleration, higher top speed).
Declaration
[Tooltip("Transmission")]
public float transmissionGearing
Field Value
| Type | Description |
|---|---|
| float |
vehicleType
Type of vehicle, which determines default configuration for powertrain, suspension, and other characteristics.
Declaration
[Tooltip("General")]
public VehicleSetupWizardPreset.VehicleType vehicleType
Field Value
| Type | Description |
|---|---|
| VehicleSetupWizardPreset.VehicleType |
width
Vehicle width in meters.
Declaration
public float width
Field Value
| Type | Description |
|---|---|
| float |