Class cc.Grid3DAction
- Defined in: CCActionGrid.js
- Extends cc.GridAction
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.
Grid3D actions can modify a non-tiled grid.
Field Detail
Please use cc.grid3DAction instead.
creates the action with size and duration.
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.Rect} getGridRect()get rect of the grid
- Returns:
- {cc.Rect} rect
-
{cc.Vertex3F} getOriginalVertex(position)returns the non-transformed vertex that belongs to certain position in the grid
- Parameters:
- {cc.Point} position
- Returns:
- {cc.Vertex3F}
-
{cc.Vertex3F} getVertex(position)returns the vertex than belongs to certain position in the grid
- Parameters:
- {cc.Point} position
- Returns:
- {cc.Vertex3F}
-
{cc.Vertex3F} originalVertex(position)returns the non-transformed vertex than belongs to certain position in the grid
It will be deprecated in future, please use getVertex instead.- 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.
It will be deprecated in future, please use getVertex instead.- Parameters:
- {cc.Point} position
- Returns:
- {cc.Vertex3F}