Moai SDK  2.0
MOAIAnimCurveVec Class Reference
+ Inheritance diagram for MOAIAnimCurveVec:

Function List

getValueAtTime
 
setKey
 
- Function List inherited from MOAINode
clearAttrLink
 
clearNodeLink
 
forceUpdate
 
getAttr
 
getAttrLink
 
getNodeState
 
moveAttr
 
scheduleUpdate
 
seekAttr
 
setAttrLink
 
setAttr
 
setNodeLink
 
- Function List inherited from MOAIInstanceEventSource
getListener
 
setListener
 

Additional Inherited Members

- Function List inherited from MOAIAnimCurveBase
getLength
 
reserveKeys
 
setWrapMode
 

Function Documentation

getValueAtTime

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 ( MOAIAnimCurveVec self, number time )

Parameters
MOAIAnimCurveVecself
numbertime
Returns
number x, number y, number z
setKey

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 ( MOAIAnimCurveVec self, number index, number time, number x, number y, number z [, number mode, number weight ] )

Parameters
MOAIAnimCurveVecself
numberindex Index of the keyframe.
numbertime Location of the key frame along the curve.
numberx X component at time.
numbery Y component at time.
numberz Z component at time.
numbermode 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.
numberweight Optional. Blends between chosen ease type (of any) and a linear transition. Defaults to 1.
Returns
nil