Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2BroadPhase<T>

Type parameters

  • T

Hierarchy

  • b2BroadPhase

Index

Properties

Readonly m_moveBuffer

m_moveBuffer: Array<b2TreeNode<T> | null> = []

m_moveCount

m_moveCount: number = 0

Readonly m_pairBuffer

m_pairBuffer: Array<b2Pair<T>> = []

m_pairCount

m_pairCount: number = 0

m_proxyCount

m_proxyCount: number = 0

Readonly m_tree

m_tree: b2DynamicTree<T> = new b2DynamicTree<T>()

Methods

BufferMove

  • Parameters

    Returns void

CreateProxy

  • Parameters

    Returns b2TreeNode<T>

DestroyProxy

  • Parameters

    Returns void

GetProxyCount

  • GetProxyCount(): number
  • Returns number

GetTreeBalance

  • GetTreeBalance(): number
  • Returns number

GetTreeHeight

  • GetTreeHeight(): number
  • Returns number

GetTreeQuality

  • GetTreeQuality(): number
  • Returns number

MoveProxy

  • Parameters

    Returns void

Query

  • Parameters

    Returns void

QueryPoint

  • QueryPoint(point: XY, callback: (node: b2TreeNode<T>) => boolean): void
  • Parameters

    Returns void

RayCast

ShiftOrigin

  • ShiftOrigin(newOrigin: XY): void
  • Parameters

    • newOrigin: XY

    Returns void

TouchProxy

  • Parameters

    Returns void

UnBufferMove

  • Parameters

    Returns void

UpdatePairs

  • UpdatePairs(callback: (a: T, b: T) => void): void
  • Parameters

    • callback: (a: T, b: T) => void
        • (a: T, b: T): void
        • Parameters

          • a: T
          • b: T

          Returns void

    Returns void

Generated using TypeDoc