Packageflare.modifiers
Classpublic class SkinModifier
InheritanceSkinModifier Inheritance Modifier Inheritance Object
Implements flash.events.IEventDispatcher

Contains all the information needed to perform skinning deformations.



Public Properties
 PropertyDefined By
  bindTransform : Matrix3D
Source transform from where the inverse bones transforms are calculated.
SkinModifier
  bones : Vector.<Pivot3D>
List of all bones.
SkinModifier
  invBoneMatrix : Vector.<Matrix3D>
Initial transform for eahc bone.
SkinModifier
  mesh : Mesh3D
A reference to the skinned mesh
SkinModifier
  root : Pivot3D
The main bone node.
SkinModifier
  skinData : Vector.<Vector.<int>>
Contains the bone indices for each surface.
SkinModifier
  totalFrames : int
SkinModifier
Public Methods
 MethodDefined By
  
SkinModifier
  
addBone(pivot:Pivot3D):int
Adds a new bone so that vertices can be then bound to it.
SkinModifier
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
SkinModifier
 Inherited
Modifier
  
dispatchEvent(event:Event):Boolean
SkinModifier
 Inherited
draw(mesh:Mesh3D, material:Material3D = null):void
Modifier
  
hasEventListener(type:String):Boolean
SkinModifier
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
SkinModifier
  
SkinModifier
  
setFrame(mesh:Mesh3D):void
SkinModifier
  
update():void
SkinModifier
  
[static]
SkinModifier
  
willTrigger(type:String):Boolean
SkinModifier
Events
 Event Summary Defined By
  This event occurs after the bones has been animated, so it is possible to change their transformation before render.SkinModifier
Property Detail
bindTransformproperty
public var bindTransform:Matrix3D

Source transform from where the inverse bones transforms are calculated.

bonesproperty 
public var bones:Vector.<Pivot3D>

List of all bones.

invBoneMatrixproperty 
public var invBoneMatrix:Vector.<Matrix3D>

Initial transform for eahc bone.

meshproperty 
public var mesh:Mesh3D

A reference to the skinned mesh

rootproperty 
public var root:Pivot3D

The main bone node.

skinDataproperty 
public var skinData:Vector.<Vector.<int>>

Contains the bone indices for each surface.

totalFramesproperty 
totalFrames:int


Implementation
    public function get totalFrames():int
    public function set totalFrames(value:int):void
Constructor Detail
SkinModifier()Constructor
public function SkinModifier()



Method Detail
addBone()method
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.
addEventListener()method 
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)

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

setBlendingState()method 
public function setBlendingState(mesh:Mesh3D):void

Parameters

mesh:Mesh3D

setFrame()method 
public function setFrame(mesh:Mesh3D):void

Parameters

mesh:Mesh3D

update()method 
public function update():void

updatePolys()method 
public static function updatePolys(skin:SkinModifier, mesh:Mesh3D):void

Parameters

skin:SkinModifier
 
mesh:Mesh3D

willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean
Event Detail
cange Event
Event 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.