Packageflare.utils
Classpublic class Pivot3DUtils
InheritancePivot3DUtils Inheritance Object

The Pivot3DUtils class contains help tools to work with Pivot3D-type objects.



Public Methods
 MethodDefined By
  
appendAnimation(dest:Pivot3D, animation:Pivot3D, label:String = null, includeMaterials:Boolean = false):void
[static] Add animation frames and labels to source pivot from another pivot, including children.
Pivot3DUtils
  
getBounds(pivot:Pivot3D, out:Boundings3D = null, relativeTo:Pivot3D = null):Boundings3D
[static]
Pivot3DUtils
  
lookAtWithReference(pivot:Pivot3D, x:Number, y:Number, z:Number, reference:Pivot3D, up:Vector3D = null, smooth:Number = 1):void
[static] Points the object direction towards a given position using a reference object.
Pivot3DUtils
  
setPositionWithReference(pivot:Pivot3D, x:Number, y:Number, z:Number, reference:Pivot3D, smooth:Number = 1):void
[static] Positions an object using another as reference.
Pivot3DUtils
  
traceInfo(pivot:Pivot3D, includeMaterials:Boolean = false, includeChildren:Boolean = true):void
[static] Returns information about an object and its properties at the Flash output.
Pivot3DUtils
Method Detail
appendAnimation()method
public static function appendAnimation(dest:Pivot3D, animation:Pivot3D, label:String = null, includeMaterials:Boolean = false):void

Add animation frames and labels to source pivot from another pivot, including children.

The pivot names and hierarchy must be the same.

Parameters

dest:Pivot3D — Pivot who want to append the animations.
 
animation:Pivot3D — The pivot that contains the animations to add to dest pivot.
 
label:String (default = null) — Optionally, you can set a new label name to define the appened animation.
 
includeMaterials:Boolean (default = false) — If materials has animated parameters, they will be append.

getBounds()method 
public static function getBounds(pivot:Pivot3D, out:Boundings3D = null, relativeTo:Pivot3D = null):Boundings3D

Parameters

pivot:Pivot3D
 
out:Boundings3D (default = null)
 
relativeTo:Pivot3D (default = null)

Returns
Boundings3D
lookAtWithReference()method 
public static function lookAtWithReference(pivot:Pivot3D, x:Number, y:Number, z:Number, reference:Pivot3D, up:Vector3D = null, smooth:Number = 1):void

Points the object direction towards a given position using a reference object. The coordinates used correspond to the local space of the 'reference' parameter.

Parameters

pivot:Pivot3D — Reference object position on the x axis.
 
x:Number — Reference object position on the Y axis.
 
y:Number — Reference object position on the Z axis.
 
z:Number — Object to be used as referente for "x", "y" and "z" parameters.
 
reference:Pivot3D — Vector3D corresponding to the direction of the object upper side. If omitted, the default value (0, 1, 0) will be used.
 
up:Vector3D (default = null) — Optional interpolation value towards final transformation (0-1).
 
smooth:Number (default = 1)

See also

setPositionWithReference()method 
public static function setPositionWithReference(pivot:Pivot3D, x:Number, y:Number, z:Number, reference:Pivot3D, smooth:Number = 1):void

Positions an object using another as reference.

Parameters

pivot:Pivot3D — Object to be positioned.
 
x:Number — Reference object position on the X axis.
 
y:Number — Reference object position on the Y axis.
 
z:Number — Reference object position on the Z axis.
 
reference:Pivot3D — Object to be used as reference.
 
smooth:Number (default = 1) — Optional interpolation value towards final transformation (0-1).

traceInfo()method 
public static function traceInfo(pivot:Pivot3D, includeMaterials:Boolean = false, includeChildren:Boolean = true):void

Returns information about an object and its properties at the Flash output.

Parameters

pivot:Pivot3D — Object to be tested.
 
includeMaterials:Boolean (default = false) — 'true' if information about the materials is to be included.
 
includeChildren:Boolean (default = true) — 'true' if all the hierarchy is to be included.