ObjectHelper.AABB Class
Axis Aligned Bounding Box.
In order to keep things simple and limit space complexity, this class holds minimal mandatory properties.
Constructor
ObjectHelper.AABB
(
-
max
-
min
Parameters:
-
max
BABYLON.Vector3the point of the box which is the greatest ( in world reference )
-
min
BABYLON.Vector3the point of the box which is the smallest ( in world reference )
Item Index
Methods
Methods
copyFromOBB
(
-
OBB
Sets the AABB in order to define the minimal volume that encloses the OBB given in argument. /!\ The resulting AABB may not fit exactly the OBB volume due to rotation limitations.
Parameters:
-
OBB
OBBthe Oriented Bounding Box
Returns:
this
copyFromOyBB
(
-
OyBB
Sets the AABB in order to define the minimal volume that encloses the OyBB given in argument. /!\ The resulting AABB may not fit exactly the OyBB volume due to rotation limitations.
Parameters:
-
OyBB
OyBBthe Bounding Box Oriented along y axis
Returns:
this