Packageaway3d.animators
Classpublic class FaceLink

Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property detail
alignproperty
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
faceproperty 
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
faceindexproperty 
faceindex:int  [write-only]

efines another face to be used as anchor by its index

Implementation
    public function set faceindex(value:int):void
objectproperty 
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
offsetproperty 
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
offsetXproperty 
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
offsetYproperty 
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
offsetZproperty 
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
targetproperty 
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
Constructor detail
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;
Init Parameters
Method detail
update()method
public function update(updateNormal:Boolean = false):void Parameters
updateNormal:Boolean (default = false)
Wiki link
Click to go to the wiki page for 'away3d.animators.FaceLink'

Code examples

Comments