Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
getValueAtTime | |
setKey |
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 )
self | ( MOAIAnimCurveQuat ) |
time | ( 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 ] )
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. |