Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
BezierBy Class Reference

An action that moves the target with a cubic Bezier curve by a certain distance. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Inherited by BezierTo.

Public Member Functions

virtual void update (float time) override
 
bool initWithDuration (float t, const ccBezierConfig &c)
 initializes the action with a duration and a bezier configuration
 
- Public Member Functions inherited from ActionInterval
float getElapsed ()
 How many seconds had elapsed since the actions started to run.
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction.
 
float getAmplitudeRate ()
 Gets the amplitude rate, extension in GridAction.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static BezierBycreate (float t, const ccBezierConfig &c)
 Creates the action with a duration and a bezier configuration.
 

Detailed Description

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

Member Function Documentation

◆ create()

static BezierBy * create ( float t,
const ccBezierConfig & c )
static

Creates the action with a duration and a bezier configuration.

Parameters
tDuration time, in seconds.
cBezier config.
Returns
An autoreleased BezierBy object.
When this function bound to js or lua,the input params are changed.
in js: var create(var t,var table)
in lua: local create(local t, local table)
static BezierBy * create(float t, const ccBezierConfig &c)
Creates the action with a duration and a bezier configuration.

◆ update()

virtual void update ( float time)
overridevirtual
Parameters
timeIn seconds.

◆ initWithDuration()

bool initWithDuration ( float t,
const ccBezierConfig & c )

initializes the action with a duration and a bezier configuration

Parameters
tin seconds

The documentation for this class was generated from the following file: