Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIAnimCurveQuat Class Reference
Inheritance diagram for MOAIAnimCurveQuat:
MOAIAnimCurveBase MOAINode MOAIInstanceEventSource MOAIEventSource

List of all members.

Function List

  getValueAtTime
  setKey

Function Documentation

Return the interpolated value (as Euler angles) given a point in time along the curve. This does not change the curve's built in TIME attribute (it simply performs the requisite computation on demand).


function getValueAtTime ( MOAIAnimCurveQuat self, number time )
Parameters:
self ( MOAIAnimCurveQuat )
time ( number )
Returns:
xRot ( number ), yRot ( number ), zRot ( number )

Initialize a key frame at a given time with a give value (as Euler angles). Also set the transition type between the specified key frame and the next key frame.


function setKey ( MOAIAnimCurve self, number index, number time, number xRot, number yRot, number zRot [, number mode, number weight ] )
Parameters:
self ( MOAIAnimCurve )
index ( number ) Index of the keyframe.
time ( number ) Location of the key frame along the curve.
xRot ( number ) X rotation at time.
yRot ( number ) Y rotation at time.
zRot ( number ) Z rotation at time.
mode ( number ) Optional. The ease mode. One of MOAIEaseType.EASE_IN, MOAIEaseType.EASE_OUT, MOAIEaseType.FLAT MOAIEaseType.LINEAR, MOAIEaseType.SMOOTH, MOAIEaseType.SOFT_EASE_IN, MOAIEaseType.SOFT_EASE_OUT, MOAIEaseType.SOFT_SMOOTH. Defaults to MOAIEaseType.SMOOTH.
weight ( number ) Optional. Blends between chosen ease type (of any) and a linear transition. Defaults to 1.
Returns:
nil