Skip to main content

WheelHit

Contact information for the wheel, reported by WheelCollider.

Members

Properties

NameDescription
WheelHit.colliderThe other Collider the wheel is hitting.
WheelHit.forceThe magnitude of the force being applied for the contact.
WheelHit.forwardDirThe direction the wheel is pointing in.
WheelHit.forwardSlipTire slip in the rolling direction. Acceleration slip is negative, braking slip is positive.
WheelHit.normalThe normal at the point of contact.
WheelHit.pointThe point of contact between the wheel and the ground.
WheelHit.sidewaysDirThe sideways direction of the wheel.
WheelHit.sidewaysSlipTire slip in the sideways direction.

Constructor

NameDescription
WheelHit()Create new WheelHit

Example

Friction for the WheelCollider is computed separately from the rest of the physics, using a slip based tire friction model. This allows for more realistic behaviour, but makes wheel colliders ignore standard PhysicMaterial settings.