ObjectHelper.OBB
Summary
Oriented Bounding Box.
In order to keep things simple and limit space complexity, this class holds minimal mandatory properties.
Constructor
ObjectHelper.OBB
Syntax
ObjectHelper.OBB
(
-
dimension
-
matrix
Summary
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
Syntax
copyFromAABB
(
-
AABB
Summary
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
Syntax
copyFromOyBB
(
-
OyBB
Summary
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