Class ControllableWheelAuthoring
Authoring component representing a controllable vehicle wheel. Works together with VehicleControlAuthoring
Inherited Members
Namespace: Unity.Vehicles
Assembly: com.unity.vehicles.dll
Syntax
[RequireComponent(typeof(WheelAuthoring))]
[DisallowMultipleComponent]
public class ControllableWheelAuthoring : MonoBehaviour
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
[Range(-1, 1)]
[Tooltip("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.")]
public float AckermanCoefficient
Field Value
Type | Description |
---|---|
float |
BrakeTorqueCoefficient
The amount of brake torque this wheel can receive as a percentage of the maximum brake torque for this wheel.
Declaration
[Range(0, 1)]
[Tooltip("The amount of brake torque this wheel can receive as a percentage of the maximum brake torque for this wheel.")]
public float BrakeTorqueCoefficient
Field Value
Type | Description |
---|---|
float |
HandbrakeCoefficient
Determines the strength of the handbrake for this wheel.
Declaration
[Range(0, 1)]
[Tooltip("Determines the strength of the handbrake for this wheel.")]
public float HandbrakeCoefficient
Field Value
Type | Description |
---|---|
float |
MaxSteerAngleDegrees
Maximum wheel steer angle, in degrees. Can be negative to flip the steer direction.
Declaration
[Range(-90, 90)]
[Tooltip("Maximum wheel steer angle, in degrees. Can be negative to flip the steer direction.")]
public float MaxSteerAngleDegrees
Field Value
Type | Description |
---|---|
float |
MotorTorqueCoefficient
The amount of motor torque this wheel can receive as a percentage of the maximum available torque for this wheel.
Declaration
[Range(0, 1)]
[Tooltip("The amount of motor torque this wheel can receive as a percentage of the maximum available torque for this wheel.")]
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 |