Package | away3d.animators |
Class | public class FaceLink |
Property | Defined by | ||
---|---|---|---|
align : Boolean
Defines if the object is aligned along the normal
| FaceLink | ||
face : Face
efines another face to be used as anchor
| FaceLink | ||
faceindex : int [write-only]
efines another face to be used as anchor by its index
| FaceLink | ||
object : Object3D
efines another object3D to be attached to the face.
| FaceLink | ||
offset : Number
The offset multiplyer value along the normal vector of the face
| FaceLink | ||
offsetX : Number
An extra offset x value added to model position
| FaceLink | ||
offsetY : Number
An extra offset y value added to model position
| FaceLink | ||
offsetZ : Number
An extra offset z value added to model position
| FaceLink | ||
target : Vector3D
The object will lookAt a given Vector3D while remaining on it's position: the center of the face with the optional offset.
| FaceLink |
Method | Defined by | ||
---|---|---|---|
FaceLink
(obj:Object3D, meshsource:Mesh, face:Face, offset:Number = 0, align:Boolean = false, target:Vector3D = null)
Creates a new
FaceLink object. | FaceLink | ||
update(updateNormal:Boolean = false):void
| FaceLink |
align | property |
align:Boolean
[read-write]Defines if the object is aligned along the normal
Implementation public function get align():Boolean
public function set align(value:Boolean):void
face | property |
face:Face
[read-write]efines another face to be used as anchor
Implementation public function get face():Face
public function set face(value:Face):void
faceindex | property |
faceindex:int
[write-only]efines another face to be used as anchor by its index
Implementation public function set faceindex(value:int):void
object | property |
object:Object3D
[read-write]efines another object3D to be attached to the face.
Implementation public function get object():Object3D
public function set object(value:Object3D):void
offset | property |
offset:Number
[read-write]The offset multiplyer value along the normal vector of the face
Implementation public function get offset():Number
public function set offset(value:Number):void
offsetX | property |
offsetX:Number
[read-write]An extra offset x value added to model position
Implementation public function get offsetX():Number
public function set offsetX(value:Number):void
offsetY | property |
offsetY:Number
[read-write]An extra offset y value added to model position
Implementation public function get offsetY():Number
public function set offsetY(value:Number):void
offsetZ | property |
offsetZ:Number
[read-write]An extra offset z value added to model position
Implementation public function get offsetZ():Number
public function set offsetZ(value:Number):void
target | property |
target:Vector3D
[read-write]The object will lookAt a given Vector3D while remaining on it's position: the center of the face with the optional offset.
Implementation public function get target():Vector3D
public function set target(value:Vector3D):void
FaceLink | () | constructor |
public function FaceLink(obj:Object3D, meshsource:Mesh, face:Face, offset:Number = 0, align:Boolean = false, target:Vector3D = null)
Parameters
obj:Object3D — The Object3D to be linked to the face during animations.
|
|
meshsource:Mesh — The Mesh witch hold the Face object reference.
|
|
face:Face — The Face object reference to be used as anchor.
|
|
offset:Number (default = 0 ) — [optional] The multiplier of the objectposition along the face normal, defines distance from face. Default = 0;
|
|
align:Boolean (default = false ) — [optional] If the mesh must be aligned to the normal vector. Default = false;
|
|
target:Vector3D (default = null ) — [optional] If the mesh points at a given Vector3D. Default = null;
|
update | () | method |
public function update(updateNormal:Boolean = false):void
Parameters
updateNormal:Boolean (default = false )
|