Loading [MathJax]/extensions/tex2jax.js

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

 
Axmol Engine 2.4.0-ce063c5
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
RotateBy Class Reference

Rotates a Node object clockwise a number of degrees by modifying it's rotation attribute. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

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)
 
- 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.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static RotateBycreate (float duration, float deltaAngle)
 Creates the action.
 
static RotateBycreate (float duration, float deltaAngleZ_X, float deltaAngleZ_Y)
 Creates the action with separate rotation angles.
 
static RotateBycreate (float duration, const Vec3 &deltaAngle3D)
 Creates the action with 3D rotation angles.
 

Detailed Description

Rotates a Node object clockwise a number of degrees by modifying it's rotation attribute.

Member Function Documentation

◆ create() [1/3]

static RotateBy * create ( float duration,
float deltaAngle )
static

Creates the action.

Parameters
durationDuration time, in seconds.
deltaAngleIn 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
durationDuration time, in seconds.
deltaAngleZ_XIn degreesCW.
deltaAngleZ_YIn 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
durationDuration time, in seconds.
deltaAngle3DA Vec3 angle.
Returns
An autoreleased RotateBy object.

◆ update()

virtual void update ( float time)
overridevirtual
Parameters
timeIn seconds.

◆ 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_Xin degreesCW
deltaAngleZ_Yin degreesCW

The documentation for this class was generated from the following file: