API Docs for: 2.7.3
Show:

ObjectHelper.AABB Class

Module: Helpers
Parent Module: Wanaplan

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.Vector3

    the point of the box which is the greatest ( in world reference )

  • min BABYLON.Vector3

    the point of the box which is the smallest ( in world reference )

Item Index

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 OBB

    the 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 OyBB

    the Bounding Box Oriented along y axis

Returns:

this