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

constructor

  • Creates the dynamic tree broad phase.

    Returns b2DynamicTreeBroadPhase

Methods

CreateProxy

DestroyProxy

GetFatAABB

GetProxyCount

  • GetProxyCount(): number
  • see

    IBroadPhase.GetProxyCount

    Returns number

GetUserData

MoveProxy

Query

RayCast

Rebalance

  • Rebalance(iterations: number): void
  • see

    IBroadPhase.Rebalance

    Parameters

    • iterations: number

    Returns void

TestOverlap

  • Tests if two proxies overlap.

    Parameters

    Returns boolean

    True if the proxyA and proxyB overlap with Fat AABBs, otherwise false.

UpdatePairs

  • 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

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

    Returns void

Generated using TypeDoc