Class cc.Grid3DAction

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for cc.Grid3D actions.

Method Summary

Class Detail

cc.Grid3DAction()
Base class for cc.Grid3D actions.
Grid3D actions can modify a non-tiled grid.

Field Detail

<static> {cc.Grid3DAction} cc.Grid3DAction.create
Please use cc.grid3DAction instead.
creates the action with size and duration.
Deprecated:
since v3.0
Please use cc.grid3DAction instead.

Method Detail

  • {cc.Grid3D} getGrid()
    returns the grid
    Returns:
    {cc.Grid3D}
  • {cc.Vertex3F} originalVertex(position)
    returns the non-transformed vertex than belongs to certain position in the grid
    Parameters:
    {cc.Point} position
    Returns:
    {cc.Vertex3F}
  • setVertex(position, vertex)
    sets a new vertex to a certain position of the grid
    Parameters:
    {cc.Point} position
    {cc.Vertex3F} vertex
  • {cc.Vertex3F} vertex(position)
    returns the vertex than belongs to certain position in the grid
    Parameters:
    {cc.Point} position
    Returns:
    {cc.Vertex3F}