C# Класс Box2DX.Collision.Collision

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CollideCircles() публичный статический Метод

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
Результат void

CollideEdgeAndCircle() публичный статический Метод

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
Результат void

CollidePolyAndEdge() публичный статический Метод

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
Результат void

CollidePolygonAndCircle() публичный статический Метод

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
Результат void

CollidePolygons() публичный статический Метод

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
Результат void

Distance() публичный статический Метод

public static Distance ( DistanceOutput &output, SimplexCache &cache, DistanceInput &input, Shape shapeA, Shape shapeB ) : void
output DistanceOutput
cache SimplexCache
input DistanceInput
shapeA Shape
shapeB Shape
Результат void

EdgeSeparation() публичный статический Метод

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
Результат float

FindIncidentEdge() публичный статический Метод

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
Результат void

FindMaxSeparation() публичный статический Метод

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
Результат float