Class cc.CatmullRomTo

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.CatmullRomTo(dt, points)
An action that moves the target with a CatmullRom curve to a destination point.

Method Summary

Class Detail

cc.CatmullRomTo(dt, points)
An action that moves the target with a CatmullRom curve to a destination point.
A Catmull Rom is a Cardinal Spline with a tension of 0.5.
http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline Absolute coordinates.
var action1 = cc.catmullRomTo(3, array);
Parameters:
{Number} dt
{Array} points

Field Detail

<static> {cc.CatmullRomTo} cc.CatmullRomTo.create
Please use cc.catmullRomTo instead. creates an action with a Cardinal Spline array of points and tension.
Deprecated:
since v3.0 please use cc.catmullRomTo(dt, points) instead.

Method Detail

  • {cc.CatmullRomTo} clone()
    returns a new clone of the action
    Returns:
    {cc.CatmullRomTo}
  • ctor(dt, points)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    creates an action with a Cardinal Spline array of points and tension.
    Parameters:
    {Number} dt
    {Array} points
  • initWithDuration(dt, points)
    Initializes the action with a duration and an array of points
    Parameters:
    {Number} dt
    {Array} points