Creates a new, empty VehicleConfiguration
OptionalisInternalConstructor: booleanHandle to the new VehicleConfiguration
Anti roll bar configurations for the vehicle. Anti roll bars reduce the tendency of the vehicle to roll over in sharp corners. An anti-roll bar should connect two wheels on opposite sides of the vehicle. It can then redirect suspension force from the wheel on the inside of a sharp turn to the wheel on the outside, keeping the vehicle more level.
Template for the vehicle body. This is intended to contain the Renderable that is used to render the vehicle body and the Collider that provides collisions for the vehicle body. It may also contain any other scene objects and components. It is also possible to put the scene objects and components for the vehicle wheels in this template. In this case, the wheels have to be configured such that the visual model is a path pointing to these objects. Note that the wheels should not have any active Collider components.
Template for the vehicle body. This is intended to contain the Renderable that is used to render the vehicle body and the Collider that provides collisions for the vehicle body. It may also contain any other scene objects and components. It is also possible to put the scene objects and components for the vehicle wheels in this template. In this case, the wheels have to be configured such that the visual model is a path pointing to these objects. Note that the wheels should not have any active Collider components.
Template for the vehicle body. This is intended to contain the Renderable that is used to render the vehicle body and the Collider that provides collisions for the vehicle body. It may also contain any other scene objects and components. It is also possible to put the scene objects and components for the vehicle wheels in this template. In this case, the wheels have to be configured such that the visual model is a path pointing to these objects. Note that the wheels should not have any active Collider components.
Differential configurations for the vehicle. Each differential connects two wheels with an axle, which is connected to the transmission. The differential splits the torque from the transmission between the wheel such that there is minimal slip in corners. Wheels that are not connected to a differential will not be able to power the vehicle.
Engine configuration for the vehicle. This determines how fast the car accelerates.
Returns a reference handle for this resource.
Determines if the resource is destroyed.
The mass of the entire vehicle. This overrides any mass set on the Rigidbody component used to simulate the vehicle.
Returns the meta data of this resource.
Name of the resource. Use primarily for easier identification and not important to the engine itself.
Suspension part configurations can be used to animate individual parts of the suspension, like suspension springs and suspension arms.
Transmission configuration for the vehicle. The transmission is simulated as either a manual or automatic transmission with a fixed set of gears. It transmits the power of the engine to the different differentials.
Radius of the wheel collision tester. Only relevant for sphere cast testing. When using sphere cast testing, the wheels are approximated as spheres for collision tests. With tall, slim wheels this may lead to issues where the sphere is too wide and causes collisions even though it shouldn't. With this property, the radius of the sphere can be set to a lower number to avoid these collisions. Note that this may cause the wheel to clip into the ground when driving over a sharp edge, similar to ray casts.
Type of test to use when testing for wheel collisions. Cylinder casts most accurately represent the wheel shape, resulting in the most convincing wheel movement. Ray casts are the fastest, but wheels can clip into objects. Sphere casts are a tradeoff between the two.
Wheel configurations for the vehicle. This determines the geometry and behavior of the wheels and suspension of the vehicle as well as the visual models for the wheels. Note that wheels should not have any active Collider components. Templates used for wheel visual models or scene objects pointed to by visual model paths need to have their Collider components removed or disabled.
Adds the specified anti-roll bar to this configuration.
The anti-roll bar to add.
For performance reasons, prefer this over accessing antiRollBars directly.
Adds the specified differential to this configuration.
The differential to add.
For performance reasons, prefer this over accessing differentials directly.
Adds the specified suspension part to this configuration.
The suspension part to add.
For performance reasons, prefer this over accessing suspensionParts directly.
Adds the specified wheel to this configuration.
The wheel to add.
For performance reasons, prefer this over accessing wheels directly.
Get the specified anti-roll bar configuration.
The index of the anti-roll bar to get.
The anti-roll bar configuration for the specified index or an empty configuration when out of bounds.
For performance reasons, prefer this over accessing antiRollBars directly.
Get the amount of anti-roll bars in this configuration.
For performance reasons, prefer this over accessing antiRollBars directly.
Get the specified differential configuration.
The index of the differential to get.
The differential configuration for the specified index or an empty configuration when out of bounds.
For performance reasons, prefer this over accessing differentials directly.
Get the amount of differentials in this configuration.
For performance reasons, prefer this over accessing differentials directly.
Get the specified suspension part configuration.
The index of the suspension part to get.
The suspension part configuration for the specified index or an empty configuration when out of bounds.
For performance reasons, prefer this over accessing suspensionParts directly.
Get the amount of suspension parts in this configuration.
For performance reasons, prefer this over accessing suspensionParts directly.
Get the specified wheel configuration.
The index of the wheel to get.
The wheel configuration for the specified index or null when out of bounds.
For performance reasons, prefer this over accessing wheels directly.
Get the specified wheel configuration.
The name of the wheel to get.
The wheel configuration for the specified index or null when not found.
Get the amount of wheels in this configuration.
For performance reasons, prefer this over accessing wheels directly.
Finds the index of the specified wheel in this configuration.
The wheel to find the index of.
The index of the wheel or null if the wheel is not part of this configuration.
Removes the specified anti-roll bar from this configuration.
The anti-roll bar to remove.
For performance reasons, prefer this over accessing antiRollBars directly.
Removes the specified differential from this configuration, if present.
The differential to remove.
For performance reasons, prefer this over accessing differentials directly.
Removes the specified suspension part from this configuration.
The suspension part to remove.
For performance reasons, prefer this over accessing suspensionParts directly.
Removes the specified wheel from this configuration, if present.
The wheel to remove.
For performance reasons, prefer this over accessing wheels directly.
Configuration for a vehicle. It describes the various components of a vehicle, like engine, transmission and wheels and how they behave. A Vehicle component can be used to create a vehicle from the configuration.