⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-dff292a
Loading...
Searching...
No Matches
BezierTo Class Reference

An action that moves the target with a cubic Bezier curve to a destination point. More...

#include <ActionInterval.h>

Inherits BezierBy.

Public Member Functions

bool initWithDuration (float t, const BezierConfig &c)
Public Member Functions inherited from BezierBy
void update (float time) override
bool initWithDuration (float t, const BezierConfig &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.
void step (float dt) override
bool initWithDuration (float d)
 initializes the action

Static Public Member Functions

static BezierTocreate (float t, const BezierConfig &c)
 Creates the action with a duration and a bezier configuration.
Static Public Member Functions inherited from BezierBy
static BezierBycreate (float t, const BezierConfig &c)
 Creates the action with a duration and a bezier configuration.

Detailed Description

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

Since
v0.8.2

Member Function Documentation

◆ create()

BezierTo * create ( float t,
const BezierConfig & c )
static

Creates the action with a duration and a bezier configuration.

Parameters
tDuration time, in seconds.
cBezier 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 BezierConfig &c)
Creates the action with a duration and a bezier configuration.

◆ initWithDuration()

bool initWithDuration ( float t,
const BezierConfig & c )
Parameters
tIn seconds.

The documentation for this class was generated from the following file:
  • ActionInterval.h