Package | flare.utils |
Class | public class Pivot3DUtils |
Inheritance | Pivot3DUtils ![]() |
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 | ||
getBounds(pivot:Pivot3D, out:Boundings3D = null, relativeTo:Pivot3D = null, includeChildren:Boolean = true):Boundings3D [static] | Pivot3DUtils | ||
[static]
Returns the distance between two objects. | 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 | ||
removeAnimations(pivot:Pivot3D, includeChildren:Boolean = true):void [static]
Removes all pivot animations and its labels. | Pivot3DUtils | ||
[static]
This method replaces all pivot dest animations and labels by the source ones using pivot names. | 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):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, includeChildren:Boolean = true):Boundings3D
Parameters
pivot:Pivot3D | |
out:Boundings3D (default = null )
| |
relativeTo:Pivot3D (default = null )
| |
includeChildren:Boolean (default = true )
|
Boundings3D |
getDistance | () | method |
public static function getDistance(pivot1:Pivot3D, pivot2:Pivot3D):Number
Returns the distance between two objects. This method uses the global space of the scene.
Parameters
pivot1:Pivot3D — First object to be tested.
| |
pivot2:Pivot3D — Second object to be tested.
|
Number — Distance between the two objects.
|
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 — pivot Object to be oriented.
| |
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 referente for "x", "y" and "z" parameters.
| |
up:Vector3D (default = null ) — Vector3D corresponding to the direction of the object upper side. If omitted, the default value (0, 1, 0) will be used.
| |
smooth:Number (default = 1 ) — Optional interpolation value towards final transformation (0-1).
|
See also
removeAnimations | () | method |
public static function removeAnimations(pivot:Pivot3D, includeChildren:Boolean = true):void
Removes all pivot animations and its labels.
Parameters
pivot:Pivot3D — The pivot from where you want to remove the animations.
| |
includeChildren:Boolean (default = true ) — 'true' if all the hierarchy is to be included.
|
setAnimations | () | method |
public static function setAnimations(dest:Pivot3D, source:Pivot3D):void
This method replaces all pivot dest animations and labels by the source ones using pivot names. Allowing to keep multiple object aniamtions synchronized and avoiding the need to append the animations for each one.
Parameters
dest:Pivot3D — The destination pivot.
| |
source:Pivot3D — The source pivot from where the animations will be taken.
|
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.
|