Skip to main content

WheelCollider.GetGroundHit()

Gets ground collision data for the wheel.

Returns:

typeDescription
booleanTrue if the wheel collides with something
WheelHitthe hit structure if the wheel collides with something, Nil otherwise.

Usage

---@type WheelCollider
local wheelcollider;


local val0, val1 = wheelcollider.GetGroundHit()

Extra Detail

If the wheel collides with something, returns true and the hit structure.