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.
Methods
Defined in box2dweb.d.ts:1420
Parameters
Defined in box2dweb.d.ts:1425
Parameters
Returns
b2AABB
public GetProxyCount( ) : number
Defined in box2dweb.d.ts:1430
Returns
number
Defined in box2dweb.d.ts:1435
Parameters
Returns
any
Defined in box2dweb.d.ts:1440
Parameters
public Query( callback: (proxy: Box2D.Collision.b2DynamicTreeNode) => boolean , aabb: b2AABB )
Defined in box2dweb.d.ts:1445
Parameters
callback: (proxy: Box2D.Collision.b2DynamicTreeNode) => boolean
public RayCast( callback: (input: Box2D.Collision.b2RayCastInput, proxy: Box2D.Collision.b2DynamicTreeNode) => number , input: b2RayCastInput )
Defined in box2dweb.d.ts:1450
Parameters
callback: (input: Box2D.Collision.b2RayCastInput, proxy: Box2D.Collision.b2DynamicTreeNode) => number
public Rebalance( iterations: number )
Defined in box2dweb.d.ts:1455
Parameters
Defined in box2dweb.d.ts:1463
Tests if two proxies overlap.
Parameters
First proxy to test.
Second proxy to test.
Returns
boolean
True if the proxyA and proxyB overlap with Fat AABBs, otherwise false.
public UpdatePairs( callback: (userDataA: any, userDataB: any) => void )
Defined in box2dweb.d.ts:1471
Update the pairs. This results in pair callbacks. This can only add pairs.
Parameters
public Validate( )
Defined in box2dweb.d.ts:1477
Validates the dynamic tree.
NOTE: this says "todo" in the current Box2DFlash code.