ObjectHelper.OBB Class
Oriented Bounding Box.
In order to keep things simple and limit space complexity, this class holds minimal mandatory properties.
Constructor
ObjectHelper.OBB
(
-
dimension
-
matrix
Parameters:
-
dimension
BABYLON.Vector3the vector from the origin to the top corner ( positive vector )
-
matrix
BABYLON.Matrixthe transormation matrix of the box, should be a rotation combined with a translation
Item Index
Methods
Methods
copyFromAABB
(
-
AABB
Sets the OBB in order to define the same volume as the AABB given in argument. The resulting OBB fits exactly the volume.
Parameters:
-
AABB
AABBthe Axis Aligned Bounding Box
Returns:
this
copyFromOyBB
(
-
OyBB
Sets the OBB in order to define the same volume as the OBB given in argument. The resulting OBB fits exactly the volume.
Parameters:
-
OyBB
OyBBthe Bounding Box Oriented along y axis
Returns:
this