isOnWheels
Definition
-- @/lua/ge/extensions/gameplay/util/groundContact.lua:20
local function isOnWheels(vehId)
if not map.objects[vehId] then return false end
oobbCenter:set(be:getObjectOOBBCenterXYZ(vehId))
local x, y, z = be:getObjectOOBBHalfExtentsXYZ(vehId);
oobbCenter.z = oobbCenter.z - z + 0.3
local distToGround = castRayStatic(oobbCenter, vecDown, raycastLength)
return distToGround <= maxGroundDistance
end
Callers
@/lua/ge/extensions/gameplay/drift/drift.lua
isReverseCheesingFunc()
isInTheAir = not gameplay_util_groundContact.isOnWheels(vehId)