An action that moves the target with a cubic Bezier curve to a destination point.
More...
#include <ActionInterval.h>
Inherits BezierBy.
|
bool | initWithDuration (float t, const ccBezierConfig &c) |
|
virtual void | update (float time) override |
|
bool | initWithDuration (float t, const ccBezierConfig &c) |
| initializes the action with a duration and a bezier configuration
|
|
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 BezierTo * | create (float t, const ccBezierConfig &c) |
| Creates the action with a duration and a bezier configuration.
|
|
static BezierBy * | create (float t, const ccBezierConfig &c) |
| Creates the action with a duration and a bezier configuration.
|
|
An action that moves the target with a cubic Bezier curve to a destination point.
- Since
- v0.8.2
◆ create()
static BezierTo * create |
( |
float | t, |
|
|
const ccBezierConfig & | c ) |
|
static |
Creates the action with a duration and a bezier configuration.
- Parameters
-
t | Duration time, in seconds. |
c | Bezier config. |
- Returns
- An autoreleased BezierTo 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 BezierTo * create(float t, const ccBezierConfig &c)
Creates the action with a duration and a bezier configuration.
◆ initWithDuration()
bool initWithDuration |
( |
float | t, |
|
|
const ccBezierConfig & | c ) |
The documentation for this class was generated from the following file: