# Module cocos.actions.basegrid_actions

Grid Actions

# Grid Actions

There are 2 kinds of grids:

> - Grid3D : A 3D grid with x,y and z coordinates

> - TiledGrid3D : A 3D grid with x,y and z coordinates, composed

>     with independent tiles

Hence, there are 2 kinds of grid actions:

> - Grid3DAction
> - TiledGrid3DAction

The Grid3DAction can modify any of vertex of the grid in any direction (x,y or z). The TiledGrid3DAction can modify any tile of the grid without modifying the adjacent tiles.

To understand visually the difference between these 2 kinds of grids, try these examples:

> - run `test/test_shakytiles3d.py` to see a TiledGrid3DAction example
> - run `test/test_shaky3d.py` to see the Grid3DAction counterpart

## Classes

| GridException
| GridBaseAction GridBaseAction is the base class of all Grid Actions.
| Grid3DAction Action that does transformations to a 3D grid ( Grid3D )
| TiledGrid3DAction Action that does transformations to a grid composed of tiles ( TiledGrid3D ).
| AccelDeccelAmplitude Increases and Decreases the amplitude of Wave
| AccelAmplitude Increases the waves amplitude from 0 to self.amplitude
| DeccelAmplitude Decreases the waves amplitude from self.amplitude to 0
| StopGrid StopGrid disables the current grid.
| ReuseGrid Will reuse the current grid for the next grid action.