Class cc.Grid3D
- Defined in: CCGrid.js
- Extends cc.GridBase
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
-
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}