Class cc.CatmullRomBy

Class Summary
Constructor Attributes Constructor Name and Description
 

An action that moves the target with a CatmullRom curve by a certain distance.

Method Summary

Class Detail

cc.CatmullRomBy()

An action that moves the target with a CatmullRom curve by a certain distance.
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.CatmullRomBy.create(3, array);

Method Detail

  • <static> cc.CatmullRomBy.create(dt, points)
    creates an action with a Cardinal Spline array of points and tension
    var action1 = cc.CatmullRomBy.create(3, array);
    Parameters:
    dt
    points