Contains all the information needed to perform skinning deformations.
public var bindTransform:Matrix3D
Source transform from where the inverse bones transforms are calculated.
public var bones:Vector.<Pivot3D>
List of all bones.
public var invBoneMatrix:Vector.<Matrix3D>
Initial transform for eahc bone.
public var mesh:Mesh3D
A reference to the skinned mesh
public var precisionEnabled:Boolean = false
Enables or disables the bones interpolation when Pivot3D.frameSpeed is less than 1.
This creates the illusion of an smother animation, but linear interpolation could not work in all cases.
By default is false.
public var root:Pivot3D
The main bone node.
public var skinData:Vector.<Vector.<int>>
Contains the bone indices for each surface.
totalFrames:int
Implementation public function get totalFrames():int
public function set totalFrames(value:int):void
public function SkinModifier()
public function addBone(pivot:Pivot3D):int
Adds a new bone so that vertices can be then bound to it.
Parameters
| pivot:Pivot3D — Pivot3D object that is to perform the bone function.
|
Returns | int — The added bone index.
|
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Parameters
| type:String |
|
| listener:Function |
|
| useCapture:Boolean (default = false )
|
|
| priority:int (default = 0 )
|
|
| useWeakReference:Boolean (default = false )
|
public function dispatchEvent(event:Event):Boolean
Parameters
Returns public function hasEventListener(type:String):Boolean
Parameters
Returns public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
| type:String |
|
| listener:Function |
|
| useCapture:Boolean (default = false )
|
public function update():void
public static function updatePolys(skin:SkinModifier, mesh:Mesh3D):void
Parameters
public function willTrigger(type:String):Boolean
Parameters
ReturnsEvent Object Type: flash.events.Event
Event.type property = flash.events.Event
This event occurs after the bones has been animated, so it is possible to change their transformation before render.
Fri May 3 2013, 01:03 AM -03:00