FlipY3D action.
More...
Inherits FlipX3D.
|
virtual void | update (float time) override |
| Called once per frame.
|
|
virtual FlipY3D * | clone () const override |
| Returns a clone of action.
|
|
|
static FlipY3D * | create (float duration) |
| Create the action with duration.
|
|
static FlipX3D * | create (float duration) |
| Create the action with duration.
|
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
static const int | INVALID_TAG = -1 |
| Default tag used for all the actions.
|
|
bool | initWithDuration (float duration) |
| Initializes an action with duration.
|
|
virtual bool | initWithSize (const Size &gridSize, float duration) |
| Initializes an action with duration and grid size.
|
|
FlipY3D action.
This action is used for flipping the target node on the y axis.
static FlipY3D* create |
( |
float |
duration | ) |
|
|
static |
Create the action with duration.
- Parameters
-
duration | Specify the duration of the FlipY3D action. It's a value in seconds. |
- Returns
- If the creation success, return a pointer of FlipY3D action; otherwise, return nil.
virtual void update |
( |
float |
time | ) |
|
|
overridevirtual |
Called once per frame.
time a value between 0 and 1.
For example:
- 0 Means that the action just started.
- 0.5 Means that the action is in the middle.
- 1 Means that the action is over.
- Parameters
-
time | A value between 0 and 1. |
Reimplemented from FlipX3D.
Returns a clone of action.
- Returns
- A clone action.
Reimplemented from FlipX3D.
The documentation for this class was generated from the following file: