Interpolator3D RotationInterpolator
public function RotationInterpolator(f:Function, pnFrames:Number, pmin:Number, pmax:Number)RotationInterpolator
This class realise a rotation interpolation of the group of objects it has been applied to
f | Function The function generating the interpolation value. You can use what you want even if Sandy recommends the Ease class The function must return a number between [0,1] and must have a parameter between [0,1] too. |
pmin | Number [facultative]The value containing the original rotation offset that will be applied to the object's vertex. Default value is 0. |
pmax | Number [facultative]The value containing the final rotation offset to apply to the object's vertex. Default value is 360. |
public function setAxisOfRotation(v:Vector):VoidAllows you to change the axis of rotation. This axis will be automatically be normalized! If the axis components are very small the rotation will be paused automatically until you change the axis.
v | Vector the vector that contains the axis components. |
Nothing
public function setPointOfReference(v:Vector):VoidAllows you to make your object rotate around a specific position and not anymore around its center. The value passed in argument represents an offset to the object position. It is NOT the real position of the rotation center.
v | Vector the offset to apply to change the rotation center. |
Nothing
public function setAngles(start:Number, end:Number):VoidAllows you to change the angles of rotation during the interpolation or once it is finished. If no values are given the default one will be set (0 and 360)
start | Number the angle you want to start rotating. |
end | Number the angle you want your interpolation finish. |
public function redo(Void):Voidredo
Make the interpolation starting again
redo() in sandy.core.transform.Interpolator3D
public function yoyo(Void):Voidyoyo
Make the interpolation going in the inversed way
yoyo() in sandy.core.transform.Interpolator3D
public function getType(Void):TransformTypeReturns the type of the interpolation.
Void |
TransformType the type of the interpolation