Moves a Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
More...
#include <ActionInterval.h>
Inherits JumpBy.
|
| bool | initWithDuration (float duration, const Vec2 &position, float height, int jumps) |
| | initializes the action
|
| void | update (float time) override |
| bool | initWithDuration (float duration, const Vec2 &position, float height, int jumps) |
| | initializes the action
|
| 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 JumpTo * | create (float duration, const Vec2 &position, float height, int jumps) |
| | Creates the action.
|
| static JumpBy * | create (float duration, const Vec2 &position, float height, int jumps) |
| | Creates the action.
|
Moves a Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
◆ create()
| JumpTo * create |
( |
float | duration, |
|
|
const Vec2 & | position, |
|
|
float | height, |
|
|
int | jumps ) |
|
static |
Creates the action.
- Parameters
-
| duration | Duration time, in seconds. |
| position | The jumping destination position. |
| height | The jumping height. |
| jumps | The jumping times. |
- Returns
- An autoreleased JumpTo object.
◆ initWithDuration()
| bool initWithDuration |
( |
float | duration, |
|
|
const Vec2 & | position, |
|
|
float | height, |
|
|
int | jumps ) |
initializes the action
- Parameters
-
The documentation for this class was generated from the following file: