tes3boundingBox⚓︎
A pair of vectors marking a bounding box.
Bounding boxes will always be centered at the world origin.
i.e., their midpoint will always be (0,0,0)
. You may want to offset the min
and max
of the bounding box by a specified position before using them.
Properties⚓︎
max
⚓︎
The maximum bound of the box.
Returns:
result
(tes3vector3)
min
⚓︎
The minimum bound of the box.
Returns:
result
(tes3vector3)
Methods⚓︎
__tostring
⚓︎
Converts the bounding box to a string with 2 decimal places. The minimum bounds are printed first, then the maximal bounds.
local result = myObject:__tostring()
Returns:
result
(string)
copy
⚓︎
Creates a copy of the bounding box.
local result = myObject:copy()
Returns:
result
(tes3boundingBox)
vertices
⚓︎
Returns a table containing the 8 vertices comprising this bounding box.
local result = myObject:vertices()
Returns:
result
(tes3vector3[])