Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Grid

Index

Constructors

constructor

  • new Grid(config: any): Grid

Properties

TWO_THIRDS

TWO_THIRDS: number

_cel

_cel: Cell

_cellLength

_cellLength: number

_cellWidth

_cellWidth: number

_conversionVec

_conversionVec: Vector3

_diagonals

_diagonals: Array<Cell>

_directions

_directions: Array<Cell>

_geoCache

_geoCache: Array<ExtrudeGeometry>

_hashDelimeter

_hashDelimeter: string

_list

_list: Array<any>

_matCache

_matCache: Array<any>

_vec3

_vec3: Vector3

cellGeo

cellGeo: Geometry

cellShape

cellShape: Shape

cellShapeGeo

cellShapeGeo: ShapeGeometry

cellSize

cellSize: number

cells

cells: Array<Cell>

extrudeSettings

extrudeSettings: ExtrudeSettings

numCells

numCells: number

Methods

_createVertex

  • _createVertex(i: any): Vector3

_cubeRound

add

cellToHash

  • cellToHash(cell: Cell): string

cellToPixel

  • cellToPixel(cell: Cell): Vector3

clearPath

  • clearPath(): void

dispose

  • dispose(): void

distance

  • distance(cellA: Cell, cellB: Cell): number

generate

  • generate(): void

generateOverlay

  • generateOverlay(size: any, overlayObj: any, overlayMat: any): void

generateTile

  • generateTile(cell: any, scale: any, material: any): Tile

generateTiles

  • generateTiles(): any[]

getCellAt

  • getCellAt(pos: Vector3): any

getNeighbors

  • getNeighbors(cell: Cell, diagonal: any, filter: any): any[]

pixelToCell

  • pixelToCell(pos: Vector3): Cell

remove

  • remove(cell: Cell): void

traverse

  • traverse(cb: Function): void

Generated using TypeDoc