Package | flare.core |
Class | public class Boundings3D |
Inheritance | Boundings3D ![]() |
The values established in this class will not affect objects physically; they are just informative.
The values returned are represented in the local space of each object. To transform them to a global space use localToGlobal or localToGlobalVector of the Pivot3D objects.
Although values can be modified, this is not advisable as these properties are often used by the visibility and collision calculation system, for example. Preferably, create a copy using the clone system and modify that copy.
Property | Defined By | ||
---|---|---|---|
center : Vector3D
Center of the object. | Boundings3D | ||
length : Vector3D
Lengths of the bounding box of the object. | Boundings3D | ||
max : Vector3D
Maximum corner of the bounding box of the object. | Boundings3D | ||
min : Vector3D
Minimum corner of the bounding box of the object. | Boundings3D | ||
radius : Number = 0
Radius of the object count from the center of the object (not from the object). | Boundings3D |
Method | Defined By | ||
---|---|---|---|
Creates a new Boundings3D object. | Boundings3D | ||
Creates a copy of a Boundings3D object. | Boundings3D | ||
reset():void
Resets the object properties to its default values. | Boundings3D |
center | property |
public var center:Vector3D
Center of the object. The center does not correspond to (0,0,0) of the object, but it is the calculated center of all the vertices.
length | property |
public var length:Vector3D
Lengths of the bounding box of the object. (Maximum corner minus minimum corner).
max | property |
public var max:Vector3D
Maximum corner of the bounding box of the object.
min | property |
public var min:Vector3D
Minimum corner of the bounding box of the object.
radius | property |
public var radius:Number = 0
Radius of the object count from the center of the object (not from the object).
Boundings3D | () | Constructor |
public function Boundings3D()
Creates a new Boundings3D object.
clone | () | method |
public function clone():Boundings3D
Creates a copy of a Boundings3D object.
ReturnsBoundings3D — Returns a new Boundings3D object.
|
reset | () | method |
public function reset():void
Resets the object properties to its default values.