Skip to main content

b2Collision

b2Collision

Box2D.Collision

Inheritance: System.Object

Constructors

b2Collision()

b2Collision()()

Fields

b2_nullFeature(System.Byte)

Methods

b2ClipSegmentToLine(b2ClipVertex[], b2ClipVertex[], ref b2Vec2, float, byte)

System.Int32 b2ClipSegmentToLine(b2ClipVertex[], b2ClipVertex[], ref b2Vec2, float, byte)(Box2D.Collision.b2ClipVertex[] vOut, Box2D.Collision.b2ClipVertex[] vIn, Box2D.Common.b2Vec2 normal, System.Single offset, System.Byte vertexIndexA)
Parameters:
vOut (Box2D.Collision.b2ClipVertex[])
vIn (Box2D.Collision.b2ClipVertex[])
normal (Box2D.Common.b2Vec2)
offset (System.Single)
vertexIndexA (System.Byte)
Returns:
System.Int32
Example

b2CollideCircles(b2Manifold, b2CircleShape, ref b2Transform, b2CircleShape, ref b2Transform)

b2CollideCircles(b2Manifold, b2CircleShape, ref b2Transform, b2CircleShape, ref b2Transform)(Box2D.Collision.b2Manifold manifold, Box2D.Collision.Shapes.b2CircleShape circleA, Box2D.Common.b2Transform xfA, Box2D.Collision.Shapes.b2CircleShape circleB, Box2D.Common.b2Transform xfB)
Parameters:
manifold (Box2D.Collision.b2Manifold)
circleA (Box2D.Collision.Shapes.b2CircleShape)
xfA (Box2D.Common.b2Transform)
circleB (Box2D.Collision.Shapes.b2CircleShape)
xfB (Box2D.Common.b2Transform)
Example

b2CollideEdgeAndCircle(b2Manifold, b2EdgeShape, ref b2Transform, b2CircleShape, ref b2Transform)

b2CollideEdgeAndCircle(b2Manifold, b2EdgeShape, ref b2Transform, b2CircleShape, ref b2Transform)(Box2D.Collision.b2Manifold manifold, Box2D.Collision.Shapes.b2EdgeShape edgeA, Box2D.Common.b2Transform xfA, Box2D.Collision.Shapes.b2CircleShape circleB, Box2D.Common.b2Transform xfB)
Parameters:
manifold (Box2D.Collision.b2Manifold)
edgeA (Box2D.Collision.Shapes.b2EdgeShape)
xfA (Box2D.Common.b2Transform)
circleB (Box2D.Collision.Shapes.b2CircleShape)
xfB (Box2D.Common.b2Transform)
Example

b2CollideEdgeAndPolygon(b2Manifold, b2EdgeShape, ref b2Transform, b2PolygonShape, ref b2Transform)

b2CollideEdgeAndPolygon(b2Manifold, b2EdgeShape, ref b2Transform, b2PolygonShape, ref b2Transform)(Box2D.Collision.b2Manifold manifold, Box2D.Collision.Shapes.b2EdgeShape edgeA, Box2D.Common.b2Transform xfA, Box2D.Collision.Shapes.b2PolygonShape polygonB, Box2D.Common.b2Transform xfB)
Parameters:
manifold (Box2D.Collision.b2Manifold)
edgeA (Box2D.Collision.Shapes.b2EdgeShape)
xfA (Box2D.Common.b2Transform)
polygonB (Box2D.Collision.Shapes.b2PolygonShape)
xfB (Box2D.Common.b2Transform)
Example

b2CollidePolygonAndCircle(b2Manifold, b2PolygonShape, ref b2Transform, b2CircleShape, ref b2Transform)

b2CollidePolygonAndCircle(b2Manifold, b2PolygonShape, ref b2Transform, b2CircleShape, ref b2Transform)(Box2D.Collision.b2Manifold manifold, Box2D.Collision.Shapes.b2PolygonShape polygonA, Box2D.Common.b2Transform xfA, Box2D.Collision.Shapes.b2CircleShape circleB, Box2D.Common.b2Transform xfB)
Parameters:
manifold (Box2D.Collision.b2Manifold)
polygonA (Box2D.Collision.Shapes.b2PolygonShape)
xfA (Box2D.Common.b2Transform)
circleB (Box2D.Collision.Shapes.b2CircleShape)
xfB (Box2D.Common.b2Transform)
Example

b2CollidePolygons(b2Manifold, b2PolygonShape, ref b2Transform, b2PolygonShape, ref b2Transform)

b2CollidePolygons(b2Manifold, b2PolygonShape, ref b2Transform, b2PolygonShape, ref b2Transform)(Box2D.Collision.b2Manifold manifold, Box2D.Collision.Shapes.b2PolygonShape polyA, Box2D.Common.b2Transform xfA, Box2D.Collision.Shapes.b2PolygonShape polyB, Box2D.Common.b2Transform xfB)
Parameters:
manifold (Box2D.Collision.b2Manifold)
polyA (Box2D.Collision.Shapes.b2PolygonShape)
xfA (Box2D.Common.b2Transform)
polyB (Box2D.Collision.Shapes.b2PolygonShape)
xfB (Box2D.Common.b2Transform)

b2EdgeSeparation(b2PolygonShape, ref b2Transform, int, b2PolygonShape, ref b2Transform)

System.Single b2EdgeSeparation(b2PolygonShape, ref b2Transform, int, b2PolygonShape, ref b2Transform)(Box2D.Collision.Shapes.b2PolygonShape poly1, Box2D.Common.b2Transform xf1, System.Int32 edge1, Box2D.Collision.Shapes.b2PolygonShape poly2, Box2D.Common.b2Transform xf2)
Parameters:
poly1 (Box2D.Collision.Shapes.b2PolygonShape)
xf1 (Box2D.Common.b2Transform)
edge1 (System.Int32)
poly2 (Box2D.Collision.Shapes.b2PolygonShape)
xf2 (Box2D.Common.b2Transform)
Returns:
System.Single

b2FindIncidentEdge(b2ClipVertex[], b2PolygonShape, ref b2Transform, int, b2PolygonShape, ref b2Transform)

b2FindIncidentEdge(b2ClipVertex[], b2PolygonShape, ref b2Transform, int, b2PolygonShape, ref b2Transform)(Box2D.Collision.b2ClipVertex[] c, Box2D.Collision.Shapes.b2PolygonShape poly1, Box2D.Common.b2Transform xf1, System.Int32 edge1, Box2D.Collision.Shapes.b2PolygonShape poly2, Box2D.Common.b2Transform xf2)
Parameters:
c (Box2D.Collision.b2ClipVertex[])
poly1 (Box2D.Collision.Shapes.b2PolygonShape)
xf1 (Box2D.Common.b2Transform)
edge1 (System.Int32)
poly2 (Box2D.Collision.Shapes.b2PolygonShape)
xf2 (Box2D.Common.b2Transform)

b2FindMaxSeparation(out int, b2PolygonShape, ref b2Transform, b2PolygonShape, ref b2Transform)

System.Single b2FindMaxSeparation(out int, b2PolygonShape, ref b2Transform, b2PolygonShape, ref b2Transform)(System.Int32 edgeIndex, Box2D.Collision.Shapes.b2PolygonShape poly1, Box2D.Common.b2Transform xf1, Box2D.Collision.Shapes.b2PolygonShape poly2, Box2D.Common.b2Transform xf2)
Parameters:
edgeIndex (System.Int32)
poly1 (Box2D.Collision.Shapes.b2PolygonShape)
xf1 (Box2D.Common.b2Transform)
poly2 (Box2D.Collision.Shapes.b2PolygonShape)
xf2 (Box2D.Common.b2Transform)
Returns:
System.Single

b2GetPointStates(b2PointState[], b2PointState[], b2Manifold, b2Manifold)

b2GetPointStates(b2PointState[], b2PointState[], b2Manifold, b2Manifold)(Box2D.Collision.b2PointState[] state1, Box2D.Collision.b2PointState[] state2, Box2D.Collision.b2Manifold manifold1, Box2D.Collision.b2Manifold manifold2)
Parameters:
state1 (Box2D.Collision.b2PointState[])
state2 (Box2D.Collision.b2PointState[])
manifold1 (Box2D.Collision.b2Manifold)
manifold2 (Box2D.Collision.b2Manifold)
Example

b2TestOverlap(b2Shape, int, b2Shape, int, ref b2Transform, ref b2Transform)

System.Boolean b2TestOverlap(b2Shape, int, b2Shape, int, ref b2Transform, ref b2Transform)(Box2D.Collision.Shapes.b2Shape shapeA, System.Int32 indexA, Box2D.Collision.Shapes.b2Shape shapeB, System.Int32 indexB, Box2D.Common.b2Transform xfA, Box2D.Common.b2Transform xfB)
Parameters:
shapeA (Box2D.Collision.Shapes.b2Shape)
indexA (System.Int32)
shapeB (Box2D.Collision.Shapes.b2Shape)
indexB (System.Int32)
xfA (Box2D.Common.b2Transform)
xfB (Box2D.Common.b2Transform)
Returns:
System.Boolean
Example

b2TestOverlap(ref b2AABB, ref b2AABB)

System.Boolean b2TestOverlap(ref b2AABB, ref b2AABB)(Box2D.Collision.b2AABB a, Box2D.Collision.b2AABB b)
Parameters:
a (Box2D.Collision.b2AABB)
b (Box2D.Collision.b2AABB)
Returns:
System.Boolean