Module cocos.actions.basegrid_actions

Grid Actions

Grid Actions

There are 2 kinds of grids:

Hence, there are 2 kinds of grid actions:

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:

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.