Struct WheelControl
Control settings for the wheel.
Inherited Members
Namespace: Unity.Vehicles
Assembly: com.unity.vehicles.dll
Syntax
public struct WheelControl : IComponentData, IQueryTypeParameter
Fields
AckermanCoefficient
This value represents the additional steering angle that will be applied to the wheel on the inside of the turning circle. There is no effect if the wheel does not share an axle with an another wheel. Set to 0 to disable.
Declaration
public float AckermanCoefficient
Field Value
Type | Description |
---|---|
float |
BrakeTorqueCoefficient
The amount of brake torque this wheel can receive as a percentage of the MaxBrakeTorque.
Declaration
public float BrakeTorqueCoefficient
Field Value
Type | Description |
---|---|
float |
HandbrakeTorqueCoefficient
Determines the strength of the handbrake for this wheel as a percentage of the MaxBrakeTorque.
Declaration
public float HandbrakeTorqueCoefficient
Field Value
Type | Description |
---|---|
float |
MaxSteerAngle
Maximum wheel steer angle, in degrees. Can be negative to flip the steer direction.
Declaration
public float MaxSteerAngle
Field Value
Type | Description |
---|---|
float |
MotorTorqueCoefficient
The amount of motor torque this wheel can receive as a percentage of the maximum motor torque available for this wheel.
Declaration
public float MotorTorqueCoefficient
Field Value
Type | Description |
---|---|
float |
SpinResistanceTorque
The amount of spin resistance torque this wheel has when no motor torque is applied.
Declaration
public float SpinResistanceTorque
Field Value
Type | Description |
---|---|
float |