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

List of all members.

Function List

  getValueAtTime
  setKey

Function Documentation

Return the interpolated vector components 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:
x ( number ), y ( number ), z ( number )

Initialize a key frame at a given time with a give vector. Also set the transition type between the specified key frame and the next key frame.


function setKey ( MOAIAnimCurve self, number index, number time, number x, number y, number z [, number mode, number weight ] )
Parameters:
self ( MOAIAnimCurve )
index ( number ) Index of the keyframe.
time ( number ) Location of the key frame along the curve.
x ( number ) X component at time.
y ( number ) Y component at time.
z ( number ) Z component 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