Cardinal Spline path. http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
Class CCCardinalSplineTo
#include <Geode/cocos/actions/CCActionCatmullRom.h>
classCCCardinalSplineTo:publiccocos2d::CCActionInterval{ ... }
Examples0
Public static methods1
staticcocos2d::CCCardinalSplineTo*create(floatduration,cocos2d::CCPointArray*points,floattension)
creates an action with a Cardinal Spline array of points and tension
when thie function bound to js,the input params are changed
js:var create(var duration,var pointTable,var tension)
Public member functions8
boolinitWithDuration(floatduration,cocos2d::CCPointArray*points,floattension)
initializes the action with a duration and an array of points
virtualcocos2d::CCCardinalSplineTo*copyWithZone(cocos2d::CCZone*pZone)
No description provided
virtualvoidstartWithTarget(cocos2d::CCNode*pTarget)
No description provided
virtualcocos2d::CCActionInterval*reverse()
No description provided
virtualvoidupdatePosition(cocos2d::CCPoint&newPos)
No description provided
cocos2d::CCPointArray*getPoints()
No description provided
voidsetPoints(cocos2d::CCPointArray*points)
No description provided
Fields5
cocos2d::CCPointArray*m_pPoints;
Array of control points
floatm_fDeltaT;
No description provided
floatm_fTension;
No description provided
cocos2d::CCPointm_previousPosition;
No description provided
cocos2d::CCPointm_accumulatedDiff;
No description provided