Packagecom.as3dmod.modifiers
Classpublic class Pivot
InheritancePivot Inheritance Modifier
ImplementsIModifier

Pivot modifier. Allows to move the pivot point of a 3D mesh.

The pivot point will be moved by the amount specified by the pivot parameter.
Common use case is to set the values of the pivot vector, add it to the modifier stack and collapse the stack. This way the pivot point will be moved and the modifier discarded. The same stack can be later resused for other modifiers.

It is possible to animtate the pivot vector propeties also.



Public Properties
 PropertyDefined by
  pivot : Vector3
Pivot
Protected Properties
 PropertyDefined by
 Inheritedmod : MeshProxy
Modifier
Public Methods
 MethodDefined by
  
Pivot(x:Number = 0, y:Number = 0, z:Number = 0)
Pivot
  
apply():void
Pivot
 Inherited
getVertices():Array
Modifier
  
Sets the values of the pivot vector so that the pivot point of the mesh will be moved to it's center.
Pivot
 Inherited
Modifier
Property detail
pivotproperty
public var pivot:Vector3
Constructor detail
Pivot()constructor
public function Pivot(x:Number = 0, y:Number = 0, z:Number = 0)Parameters
x:Number (default = 0)
 
y:Number (default = 0)
 
z:Number (default = 0)
Method detail
apply()method
public function apply():void
setMeshCenter()method 
public function setMeshCenter():void

Sets the values of the pivot vector so that the pivot point of the mesh will be moved to it's center.