Class cc.Grid3D

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Grid3D is a 3D grid implementation.

Method Summary

Class Detail

cc.Grid3D()
cc.Grid3D is a 3D grid implementation. Each vertex has 3 dimensions: x,y,z

Method Detail

  • <static> {cc.Grid3D} cc.Grid3D.create(gridSize, texture, flipped)
    create one Grid3D object
    Parameters:
    {cc.Size} gridSize
    {cc.Texture2D} texture Optional
    {Boolean} flipped Optional
    Returns:
    {cc.Grid3D}
  • {cc.Vertex3F} originalVertex(pos)
    returns the original (non-transformed) vertex at a given position
    Parameters:
    {cc.Point} pos
    Returns:
    {cc.Vertex3F}
  • setVertex(pos, vertex)
    sets a new vertex at a given position
    Parameters:
    {cc.Point} pos
    {cc.Vertex3F} vertex
  • {cc.Vertex3F} vertex(pos)
    returns the vertex at a given position
    Parameters:
    {cc.Point} pos
    Returns:
    {cc.Vertex3F}