Static variables

@:value(new BoundingBox())static__tempBounds:BoundingBox = new BoundingBox()

@:value(new BoundingBox())static__tempBounds2:BoundingBox = new BoundingBox()

Constructor

new(?min:Vector3D, ?max:Vector3D)

Variables

@:value(new Vector3D())center:Vector3D = new Vector3D()

@:value(new Vector3D())extents:Vector3D = new Vector3D()

Methods

fromExtents(min:Vector3D, max:Vector3D):BoundingBox

expand(box:BoundingBox):Void

This merges two bounding boxes so they expand to cover their total volume

This also moves the bounding box so the extents can be applied to the new volume

inlinecopyFrom(box:BoundingBox):Void

zero():Void

getTransformed(transform:Matrix3D, ?output:BoundingBox):BoundingBox

Transforms this bounding box to encapsulate an object's global transform.

This can be very useful to determine the object's extents on-screen and do frustum culling

Parameters:

transform

The transform of the FoxObject

output

(Optional) Where to store the transformed result, if empty, a new BoundingBox will be created