⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
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 | |
| 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. | |
| Public Member Functions inherited from GridAction | |
| bool | initWithDuration (float duration, const Vec2 &gridSize) |
| Initializes the action with size and duration. | |
| 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. | |
| 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. @lua NA |
| Rect getGridRect | ( | ) | const |
Get the effect grid rect.