Class Index | File Index

Classes


Class cc.BezierBy


Extends cc.ActionInterval.

Defined in: CCActionInterval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
An action that moves the target with a cubic Bezier curve by a certain distance.
Method Summary
Method Attributes Method Name and Description
<static>  
cc.BezierBy.create(t, c)
 
ctor()
Constructor
 
 
 
 
update(time)
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.BezierBy()
An action that moves the target with a cubic Bezier curve by a certain distance.
Method Detail
<static> {cc.BezierBy} cc.BezierBy.create(t, c)
// example
var bezier = [cc.p(0, windowSize.height / 2), cc.p(300, -windowSize.height / 2), cc.p(300, 100)];
var bezierForward = cc.BezierBy.create(3, bezier);
Parameters:
{Number} t
time in seconds
{Array} c
Array of points
Returns:
{cc.BezierBy}

ctor()
Constructor

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

{cc.ActionInterval} reverse()
Returns:
{cc.ActionInterval}

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

update(time)
Parameters:
{Number} time

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