Skip to content

Api > WheelCollider > GetGroundHit()


WheelCollider.GetGroundHit()⚓︎

Gets ground collision data for the wheel.

Returns:⚓︎

type Description
boolean True if the wheel collides with something
WheelHit the 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.