Class cc.CatmullRomTo

Class Summary
Constructor Attributes Constructor Name and Description
 

An action that moves the target with a CatmullRom curve to a destination point.

Method Summary

Class Detail

cc.CatmullRomTo()

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

var action1 = cc.CatmullRomTo.create(3, array);

Method Detail

  • {cc.CatmullRomTo} clone()
    returns a new clone of the action
    Returns:
    {cc.CatmullRomTo}
  • <static> {cc.CatmullRomTo} cc.CatmullRomTo.create(dt, points)
    creates an action with a Cardinal Spline array of points and tension
    var action1 = cc.CatmullRomTo.create(3, array);
    Parameters:
    {Number} dt
    {Array} points
    Returns:
    {cc.CatmullRomTo}
  • initWithDuration(dt, points)
    initializes the action with a duration and an array of points
    Parameters:
    dt
    points