GE Lua Documentation

Press F to search!

overlapsOBB_Sphere

Definition


-- @/lua/common/mathlib.lua:1376

function overlapsOBB_Sphere(c1, x1, y1, z1, c2, r2)
  return OBBsquaredDistance(c1, x1, y1, z1, c2) <= r2*r2
end

Callers

@/lua/ge/extensions/gameplay/markers/missionMarker.lua
  -- Check if vehicle OBB overlaps with marker sphere
  return overlapsOBB_Sphere(bbCenter, bbHalfAxis0, bbHalfAxis1, bbHalfAxis2, self.pos, self.radius)
end