Class Index | File Index

Classes


Class cc.BezierTo


Extends cc.BezierBy.

Defined in: CCActionInterval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
An action that moves the target with a cubic Bezier curve to a destination point.
Method Summary
Method Attributes Method Name and Description
<static>  
cc.BezierTo.create(t, c)
 
 
Methods borrowed from class cc.BezierBy:
ctor, reverse, update
Methods borrowed from class cc.ActionInterval:
getAmplitudeRate, getElapsed, isDone, setAmplitudeRate, step
Methods borrowed from class cc.FiniteTimeAction:
getDuration, setDuration
Methods borrowed from class cc.Action:
copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget, stop
Class Detail
cc.BezierTo()
An action that moves the target with a cubic Bezier curve to a destination point.
Method Detail
<static> {cc.BezierTo} cc.BezierTo.create(t, c)
// example
var bezier = [cc.p(0, windowSize.height / 2), cc.p(300, -windowSize.height / 2), cc.p(300, 100)];
var bezierTo = cc.BezierTo.create(2, bezier);
Parameters:
{Number} t
{Array} c
array of points
Returns:
{cc.BezierTo}

{Boolean} initWithDuration(t, c)
Parameters:
{Number} t
time in seconds
{Array} c
Array of points
Returns:
{Boolean}

startWithTarget(target)
Parameters:
{cc.Node} target

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:50 GMT-0800 (PST)