⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
Moves a Node object simulating a parabolic jump movement by modifying it's position attribute. More...
#include <ActionInterval.h>
Inherits ActionInterval.
Inherited by JumpTo.
Public Member Functions | |
| void | update (float time) override |
| bool | initWithDuration (float duration, const Vec2 &position, float height, int jumps) |
| initializes the action | |
| 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 JumpBy * | create (float duration, const Vec2 &position, float height, int jumps) |
| Creates the action. | |
Moves a Node object simulating a parabolic jump movement by modifying it's position attribute.
Creates the action.
| duration | Duration time, in seconds. |
| position | The jumping distance. |
| height | The jumping height. |
| jumps | The jumping times. |
|
override |
| time | In seconds. |
| bool initWithDuration | ( | float | duration, |
| const Vec2 & | position, | ||
| float | height, | ||
| int | jumps ) |
initializes the action
| duration | in seconds |