Class cc.TiledGrid3D

Class Summary
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.

Method Detail

  • <static> {cc.TiledGrid3D} cc.TiledGrid3D.create(gridSize, texture, flipped)
    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
    Parameters:
    {cc.Point} pos
    {cc.Quad3} coords
  • {cc.Quad3} tile(pos)
    returns the tile at the given position
    Parameters:
    {cc.Point} pos
    Returns:
    {cc.Quad3}