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
    Deprecated:
    since v3.0, please use new cc.TiledGrid3D(gridSize, texture, flipped) instead
    Returns:
    {cc.TiledGrid3D}
  • ctor(gridSize, texture, flipped, rect)
    create one TiledGrid3D object Constructor of cc.TiledGrid3D
    Parameters:
    {cc.Size} gridSize
    {cc.Texture2D} texture Optional
    {Boolean} flipped Optional
    rect
  • {cc.Quad3} getOriginalTile(pos)
    returns the original tile (untransformed) at the given position
    Parameters:
    {cc.Point} pos
    Returns:
    {cc.Quad3}
  • {cc.Quad3} getTile(pos)
    returns the tile at the given position
    Parameters:
    {cc.Point} pos
    Returns:
    {cc.Quad3}
  • {cc.Quad3} originalTile(pos)
    returns the original tile (untransformed) at the given position.
    It will be deprecated in future, please use getOriginalTile instead.
    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
    It will be deprecated in future, please use getTile instead.
    Parameters:
    {cc.Point} pos
    Returns:
    {cc.Quad3}