Skip to main content

Struct WheelControl.VehicleModelStruct

Describes a visual model associated with a WheelCollider and how it should match its behavior.

[Serializable]
public struct WheelControl.VehicleModelStruct

Fields​

Model​

The transform of the visual wheel model to sync with the WheelCollider.

[Tooltip("The transform of the visual wheel model to sync with the WheelCollider.")]
public Transform Model

Field Value​

Transform

matchInfo​

Controls how this model should follow the WheelCollider (position, roll, steer).

[Tooltip("Controls how this model should follow the WheelCollider (position, roll, steer).")]
public WheelControl.MatchInfoStruct matchInfo

Field Value​

WheelControl.MatchInfoStruct