Skip to main content

b2BroadPhase

b2BroadPhase

Box2D.Collision

Inheritance: System.Object

Implements: Box2D.Dynamics.Ib2QueryCallback, System.Collections.Generic.IComparer{Box2D.Collision.b2Pair}

Constructors

b2BroadPhase()

b2BroadPhase()()

Fields

e_nullProxy(System.Int32)

Methods

BufferMove(int)

BufferMove(int)(System.Int32 proxyId)
Parameters:
proxyId (System.Int32)

Compare(b2Pair, b2Pair)

System.Int32 Compare(b2Pair, b2Pair)(Box2D.Collision.b2Pair pair1, Box2D.Collision.b2Pair pair2)
Parameters:
pair1 (Box2D.Collision.b2Pair)
pair2 (Box2D.Collision.b2Pair)
Returns:
System.Int32
Example

CreateProxy(ref b2AABB, ref b2FixtureProxy)

System.Int32 CreateProxy(ref b2AABB, ref b2FixtureProxy)(Box2D.Collision.b2AABB aabb, Box2D.Dynamics.b2FixtureProxy userData)
Parameters:
aabb (Box2D.Collision.b2AABB)
userData (Box2D.Dynamics.b2FixtureProxy)
Returns:
System.Int32

DestroyProxy(int)

DestroyProxy(int)(System.Int32 proxyId)
Parameters:
proxyId (System.Int32)

GetFatAABB(int, out b2AABB)

GetFatAABB(int, out b2AABB)(System.Int32 proxyId, Box2D.Collision.b2AABB output)
Parameters:
proxyId (System.Int32)
output (Box2D.Collision.b2AABB)

GetProxyCount()

System.Int32 GetProxyCount()()
Returns:
System.Int32

GetTreeBalance()

System.Int32 GetTreeBalance()()
Returns:
System.Int32

GetTreeHeight()

System.Int32 GetTreeHeight()()
Returns:
System.Int32

GetTreeQuality()

System.Single GetTreeQuality()()
Returns:
System.Single

GetUserData(int)

Box2D.Dynamics.b2FixtureProxy GetUserData(int)(System.Int32 proxyId)
Parameters:
proxyId (System.Int32)
Returns:
Box2D.Dynamics.b2FixtureProxy

MoveProxy(int, ref b2AABB, ref b2Vec2)

MoveProxy(int, ref b2AABB, ref b2Vec2)(System.Int32 proxyId, Box2D.Collision.b2AABB aabb, Box2D.Common.b2Vec2 displacement)
Parameters:
proxyId (System.Int32)
aabb (Box2D.Collision.b2AABB)
displacement (Box2D.Common.b2Vec2)

Query(Ib2QueryCallback, b2AABB)

Query(Ib2QueryCallback, b2AABB)(Box2D.Dynamics.Ib2QueryCallback q, Box2D.Collision.b2AABB aabb)
Parameters:
q (Box2D.Dynamics.Ib2QueryCallback)
aabb (Box2D.Collision.b2AABB)

QueryCallback(int)

System.Boolean QueryCallback(int)(System.Int32 proxyId)
Parameters:
proxyId (System.Int32)
Returns:
System.Boolean
Example

RayCast(b2WorldRayCastWrapper, b2RayCastInput)

RayCast(b2WorldRayCastWrapper, b2RayCastInput)(Box2D.Dynamics.b2WorldRayCastWrapper w, Box2D.Collision.b2RayCastInput input)
Parameters:
w (Box2D.Dynamics.b2WorldRayCastWrapper)
input (Box2D.Collision.b2RayCastInput)

TestOverlap(int, int)

System.Boolean TestOverlap(int, int)(System.Int32 proxyIdA, System.Int32 proxyIdB)
Parameters:
proxyIdA (System.Int32)
proxyIdB (System.Int32)
Returns:
System.Boolean

TouchProxy(int)

TouchProxy(int)(System.Int32 proxyId)
Parameters:
proxyId (System.Int32)

UnBufferMove(int)

UnBufferMove(int)(System.Int32 proxyId)
Parameters:
proxyId (System.Int32)

UpdatePairs(b2ContactManager)

UpdatePairs(b2ContactManager)(Box2D.Dynamics.b2ContactManager callback)
Parameters:
callback (Box2D.Dynamics.b2ContactManager)

b2PairLessThan(b2Pair, b2Pair)

System.Boolean b2PairLessThan(b2Pair, b2Pair)(Box2D.Collision.b2Pair pair1, Box2D.Collision.b2Pair pair2)
Parameters:
pair1 (Box2D.Collision.b2Pair)
pair2 (Box2D.Collision.b2Pair)
Returns:
System.Boolean
Example