C# Class Box2DX.Collision.Collision

Show file Open project: KrugerHeavyIndustries/box2d-unity

Public Methods

Method Description
CollideCircles ( Manifold &manifold, CircleShape circle1, Box2DX.Common.Transform xf1, CircleShape circle2, Box2DX.Common.Transform xf2 ) : void
CollideEdgeAndCircle ( Manifold &manifold, EdgeShape edge, Box2DX.Common.Transform transformA, CircleShape circle, Box2DX.Common.Transform transformB ) : void
CollidePolyAndEdge ( Manifold &manifold, PolygonShape polygon, Box2DX.Common.Transform TransformA, EdgeShape edge, Box2DX.Common.Transform TransformB ) : void
CollidePolygonAndCircle ( Manifold &manifold, PolygonShape polygon, Box2DX.Common.Transform xf1, CircleShape circle, Box2DX.Common.Transform xf2 ) : void
CollidePolygons ( Manifold &manifold, PolygonShape polyA, Box2DX.Common.Transform xfA, PolygonShape polyB, Box2DX.Common.Transform xfB ) : void
Distance ( DistanceOutput &output, SimplexCache &cache, DistanceInput &input, Shape shapeA, Shape shapeB ) : void
EdgeSeparation ( PolygonShape poly1, Box2DX.Common.Transform xf1, int edge1, PolygonShape poly2, Box2DX.Common.Transform xf2 ) : float

Find the separation between poly1 and poly2 for a give edge normal on poly1.

FindIncidentEdge ( Box2DX.Collision.ClipVertex &c, PolygonShape poly1, Box2DX.Common.Transform xf1, int edge1, PolygonShape poly2, Box2DX.Common.Transform xf2 ) : void
FindMaxSeparation ( int &edgeIndex, PolygonShape poly1, Box2DX.Common.Transform xf1, PolygonShape poly2, Box2DX.Common.Transform xf2 ) : float

Find the max separation between poly1 and poly2 using edge normals from poly1.

Method Details

CollideCircles() public static method

public static CollideCircles ( Manifold &manifold, CircleShape circle1, Box2DX.Common.Transform xf1, CircleShape circle2, Box2DX.Common.Transform xf2 ) : void
manifold Manifold
circle1 CircleShape
xf1 Box2DX.Common.Transform
circle2 CircleShape
xf2 Box2DX.Common.Transform
return void

CollideEdgeAndCircle() public static method

public static CollideEdgeAndCircle ( Manifold &manifold, EdgeShape edge, Box2DX.Common.Transform transformA, CircleShape circle, Box2DX.Common.Transform transformB ) : void
manifold Manifold
edge EdgeShape
transformA Box2DX.Common.Transform
circle CircleShape
transformB Box2DX.Common.Transform
return void

CollidePolyAndEdge() public static method

public static CollidePolyAndEdge ( Manifold &manifold, PolygonShape polygon, Box2DX.Common.Transform TransformA, EdgeShape edge, Box2DX.Common.Transform TransformB ) : void
manifold Manifold
polygon PolygonShape
TransformA Box2DX.Common.Transform
edge EdgeShape
TransformB Box2DX.Common.Transform
return void

CollidePolygonAndCircle() public static method

public static CollidePolygonAndCircle ( Manifold &manifold, PolygonShape polygon, Box2DX.Common.Transform xf1, CircleShape circle, Box2DX.Common.Transform xf2 ) : void
manifold Manifold
polygon PolygonShape
xf1 Box2DX.Common.Transform
circle CircleShape
xf2 Box2DX.Common.Transform
return void

CollidePolygons() public static method

public static CollidePolygons ( Manifold &manifold, PolygonShape polyA, Box2DX.Common.Transform xfA, PolygonShape polyB, Box2DX.Common.Transform xfB ) : void
manifold Manifold
polyA PolygonShape
xfA Box2DX.Common.Transform
polyB PolygonShape
xfB Box2DX.Common.Transform
return void

Distance() public static method

public static Distance ( DistanceOutput &output, SimplexCache &cache, DistanceInput &input, Shape shapeA, Shape shapeB ) : void
output DistanceOutput
cache SimplexCache
input DistanceInput
shapeA Shape
shapeB Shape
return void

EdgeSeparation() public static method

Find the separation between poly1 and poly2 for a give edge normal on poly1.
public static EdgeSeparation ( PolygonShape poly1, Box2DX.Common.Transform xf1, int edge1, PolygonShape poly2, Box2DX.Common.Transform xf2 ) : float
poly1 PolygonShape
xf1 Box2DX.Common.Transform
edge1 int
poly2 PolygonShape
xf2 Box2DX.Common.Transform
return float

FindIncidentEdge() public static method

public static FindIncidentEdge ( Box2DX.Collision.ClipVertex &c, PolygonShape poly1, Box2DX.Common.Transform xf1, int edge1, PolygonShape poly2, Box2DX.Common.Transform xf2 ) : void
c Box2DX.Collision.ClipVertex
poly1 PolygonShape
xf1 Box2DX.Common.Transform
edge1 int
poly2 PolygonShape
xf2 Box2DX.Common.Transform
return void

FindMaxSeparation() public static method

Find the max separation between poly1 and poly2 using edge normals from poly1.
public static FindMaxSeparation ( int &edgeIndex, PolygonShape poly1, Box2DX.Common.Transform xf1, PolygonShape poly2, Box2DX.Common.Transform xf2 ) : float
edgeIndex int
poly1 PolygonShape
xf1 Box2DX.Common.Transform
poly2 PolygonShape
xf2 Box2DX.Common.Transform
return float