| Package | flare.utils |
| Class | public class Pivot3DUtils |
| Inheritance | Pivot3DUtils Object |
| Method | Defined 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 | ||
[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 | ||
[static]
Returns information about an object and its properties at the Flash output. | Pivot3DUtils | ||
| appendAnimation | () | method |
public static function appendAnimation(dest:Pivot3D, animation:Pivot3D, label:String = null, includeMaterials:Boolean = false):voidAdd 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):Boundings3DParameters
pivot:Pivot3D | |
out:Boundings3D (default = null) | |
relativeTo:Pivot3D (default = null) |
Boundings3D |
| lookAtWithReference | () | method |
public static function lookAtWithReference(pivot:Pivot3D, x:Number, y:Number, z:Number, reference:Pivot3D, up:Vector3D = null, smooth:Number = 1):voidPoints 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):voidPositions 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):voidReturns 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.
|