getBox

entity:getBox()

Restituisce i due punti del bound-box dell'entità.

Esempio 1. Esempio getBox

local ent = entmake{ {0,"LINE"}, {10,Point(0,0,0)}, {11,Point(50,30,0)} }
local pMin, pMax = ent:getBox()
print("\nmin: " .. tostring(pMin) .. "  max: " .. tostring(pMax))