Skip to main content

HashGridProxy <T>

Hierarchy

Index

Constructors

constructor

  • new HashGridProxy<T>(object: T, gridSize: number): HashGridProxy<T>

Properties

bottomY

bottomY: number

bottom bounds y hash coordinate

bounds

bounds: BoundingBox

cells

cells: HashGridCell<T, HashGridProxy<T>>[] = []

readonlygridSize

gridSize: number

Grid size in pixels

hasZeroBounds

hasZeroBounds: boolean = false

id

id: number = -1

leftX

leftX: number

left bounds x hash coordinate

publicobject

object: T

rightX

rightX: number

right bounds x hash coordinate

topY

topY: number

top bounds y hash coordinate

Methods

clear

  • clear(): void
  • Clears all collider references


    Returns void

hasChanged

  • hasChanged(): boolean
  • Has the hashed bounds changed


    Returns boolean

update

  • update(): void
  • Updates the hashed bounds coordinates


    Returns void

updateBounds

  • updateBounds(): void
  • Update bounds of the proxy


    Returns void