Axmol Engine 2.4.0-258ceca
|
Base class for Grid3D actions. More...
#include <ActionGrid.h>
Inherits GridAction.
Inherited by FlipX3D, Lens3D, Liquid, PageTurn3D, Ripple3D, Shaky3D, Twirl, Waves, and Waves3D.
Public Member Functions | |
virtual GridBase * | getGrid () override |
Get the pointer of GridBase. | |
Vec3 | getVertex (const Vec2 &position) const |
Get the vertex that belongs to certain position in the grid. | |
Vec3 | getOriginalVertex (const Vec2 &position) const |
Get the non-transformed vertex that belongs to certain position in the grid. | |
void | setVertex (const Vec2 &position, const Vec3 &vertex) |
Set a new vertex to a certain position of the grid. | |
Rect | getGridRect () const |
Get the effect grid rect. | |
![]() | |
bool | initWithDuration (float duration, const Vec2 &gridSize) |
Initializes the action with size and duration. | |
![]() | |
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 | |
|
overridevirtual |
Get the pointer of GridBase.
Reimplemented from GridAction.
Reimplemented in PageTurn3D.
Get the vertex that belongs to certain position in the grid.
position | The position of the grid. |
Get the non-transformed vertex that belongs to certain position in the grid.
position | The position of the grid. |
Set a new vertex to a certain position of the grid.
position | The position of the grid. |
vertex | The vertex will be used on the certain position of grid. @js setVertex @lua NA |
Rect getGridRect | ( | ) | const |
Get the effect grid rect.