Rotates a Node object clockwise a number of degrees by modifying it's rotation attribute.
More...
#include <ActionInterval.h>
Inherits ActionInterval.
|
virtual void | update (float time) override |
|
bool | initWithDuration (float duration, float deltaAngle) |
| initializes the action
|
|
bool | initWithDuration (float duration, float deltaAngleZ_X, float deltaAngleZ_Y) |
|
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 RotateBy * | create (float duration, float deltaAngle) |
| Creates the action.
|
|
static RotateBy * | create (float duration, float deltaAngleZ_X, float deltaAngleZ_Y) |
| Creates the action with separate rotation angles.
|
|
static RotateBy * | create (float duration, const Vec3 &deltaAngle3D) |
| Creates the action with 3D rotation angles.
|
|
Rotates a Node object clockwise a number of degrees by modifying it's rotation attribute.
◆ create() [1/3]
static RotateBy * create |
( |
float | duration, |
|
|
float | deltaAngle ) |
|
static |
Creates the action.
- Parameters
-
duration | Duration time, in seconds. |
deltaAngle | In degreesCW. |
- Returns
- An autoreleased RotateBy object.
◆ create() [2/3]
static RotateBy * create |
( |
float | duration, |
|
|
float | deltaAngleZ_X, |
|
|
float | deltaAngleZ_Y ) |
|
static |
Creates the action with separate rotation angles.
- Parameters
-
duration | Duration time, in seconds. |
deltaAngleZ_X | In degreesCW. |
deltaAngleZ_Y | In degreesCW. |
- Returns
- An autoreleased RotateBy object.
- Warning
- The physics body contained in Node doesn't support rotate with different x and y angle.
◆ create() [3/3]
static RotateBy * create |
( |
float | duration, |
|
|
const Vec3 & | deltaAngle3D ) |
|
static |
Creates the action with 3D rotation angles.
- Parameters
-
duration | Duration time, in seconds. |
deltaAngle3D | A Vec3 angle. |
- Returns
- An autoreleased RotateBy object.
◆ update()
virtual void update |
( |
float | time | ) |
|
|
overridevirtual |
◆ initWithDuration()
bool initWithDuration |
( |
float | duration, |
|
|
float | deltaAngleZ_X, |
|
|
float | deltaAngleZ_Y ) |
- Warning
- The physics body contained in Node doesn't support rotate with different x and y angle.
- Parameters
-
deltaAngleZ_X | in degreesCW |
deltaAngleZ_Y | in degreesCW |
The documentation for this class was generated from the following file: