Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WheelCollider.center

Switch to Manual
public var center: Vector3;

Description

The center of the wheel, measured in the object's local space.

The center of the wheel describes the coordinate that the wheel would achieve if the car was suspended in mid-air. This is equivalent to the coordinate of the wheel center when the spring is at maximum elongation.