Class cc.TiledGrid3D
- Defined in: CCGrid.js
- Extends cc.GridBase
Constructor Attributes | Constructor Name and Description |
---|---|
cc.TiledGrid3D is a 3D grid implementation.
|
Method Summary
Class Detail
cc.TiledGrid3D()
cc.TiledGrid3D is a 3D grid implementation. It differs from Grid3D in that
the tiles can be separated from the grid.
the tiles can be separated from the grid.
Method Detail
-
create one TiledGrid3D object
- Parameters:
- {cc.Size} gridSize
- {cc.Texture2D} texture Optional
- {Boolean} flipped Optional
- Returns:
- {cc.TiledGrid3D}
-
{cc.Quad3} originalTile(pos)returns the original tile (untransformed) at the given position
- Parameters:
- {cc.Point} pos
- Returns:
- {cc.Quad3}
-
setTile(pos, coords)sets a new tile
-
{cc.Quad3} tile(pos)returns the tile at the given position
- Parameters:
- {cc.Point} pos
- Returns:
- {cc.Quad3}