Class cc.EaseBezierAction

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.EaseBezierAction action.

Method Summary

Class Detail

cc.EaseBezierAction(action)
cc.EaseBezierAction action.
Manually set a 4 order Bessel curve.
According to the set point, calculate the trajectory.
//The old usage
var action = cc.EaseBezierAction.create(action);
action.setBezierParamer(0.5, 0.5, 1.0, 1.0);
//The new usage
action.easing(cc.easeBezierAction(0.5, 0.5, 1.0, 1.0));
Parameters:
{cc.Action} action
since v3.0
Please use action.easing(cc.easeBezierAction())

Method Detail

  • to copy object with deep copy. returns a clone of action.
    Returns:
    {cc.EaseBezierAction}
  • <static> {cc.EaseBezierAction} cc.EaseBezierAction.create(action)
    Creates the action.
    After creating the cc.EaseBezierAction, also need to manually call setBezierParamer.
    According to the set point, calculate the trajectory.
    //The old usage
    var action = cc.EaseBezierAction.create(action);
    action.setBezierParamer(0.5, 0.5, 1.0, 1.0);
    //The new usage
    action.easing(cc.easeBezierAction(0.5, 0.5, 1.0, 1.0));
    Parameters:
    action
    Deprecated:
    since v3.0
    Please use action.easing(cc.easeBezierAction())
    Returns:
    {cc.EaseBezierAction}
  • ctor(action)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Initialization requires the application of Bessel curve of action.
    Parameters:
    {cc.Action} action
  • {cc.EaseBezierAction} reverse()
    Create a action. Opposite with the original motion trajectory.
    Returns:
    {cc.EaseBezierAction}
  • setBezierParamer(p0, p1, p2, p3)
    Set of 4 reference point
    Parameters:
    p0
    p1
    p2
    p3
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt