Options
All
  • Public
  • Public/Protected
  • All
Menu

The broad-phase is used for computing pairs and performing volume queries and ray casts. This broad-phase does not persist pairs. Instead, this reports potentially new pairs. It is up to the client to consume the new pairs and to track subsequent overlap.

Hierarchy

  • b2DynamicTreeBroadPhase

Implements

Index

Constructors

Methods

  • GetProxyCount(): number
  • Rebalance(iterations: number): void
  • UpdatePairs(callback: (userDataA: any, userDataB: any) => void): void
  • Update the pairs. This results in pair callbacks. This can only add pairs.

    Parameters

    • callback: (userDataA: any, userDataB: any) => void

      Called for all new proxy pairs. param userDataA Proxy A in the pair user data. param userDataB Proxy B in the pair user data.

        • (userDataA: any, userDataB: any): void
        • Parameters

          • userDataA: any
          • userDataB: any

          Returns void

    Returns void

  • Validate(): void
  • Validates the dynamic tree. NOTE: this says "todo" in the current Box2DFlash code.

    Returns void

Generated using TypeDoc