Méthode | Description | |
---|---|---|
CollideCircles ( |
||
CollideEdgeAndCircle ( |
Compute contact points for edge versus circle. This accounts for edge connectivity.
|
|
CollideEdgeAndPolygon ( |
Collides and edge and a polygon, taking into account edge adjacency.
|
|
CollidePolygonAndCircle ( |
Compute the collision manifold between a polygon and a circle.
|
|
CollidePolygons ( |
Compute the collision manifold between two polygons.
|
|
GetPointStates ( FixedArray2 |
||
GetWorldManifold ( |
Evaluate the manifold with supplied transforms. This assumes modest motion from the original state. This does not change the point count, impulses, etc. The radii must come from the Shapes that generated the manifold.
|
Méthode | Description | |
---|---|---|
ClipSegmentToLine ( FixedArray2 |
Clipping for contact manifolds.
|
|
ComputeEdgeSeparation ( ) : |
||
ComputePolygonSeparation ( ) : |
||
EdgeSeparation ( |
Find the separation between poly1 and poly2 for a give edge normal on poly1.
|
|
FindIncidentEdge ( FixedArray2 |
||
FindIncidentEdge ( FixedArray2 |
||
FindMaxSeparation ( int &edgeIndex, |
Find the max separation between poly1 and poly2 using edge normals from poly1.
|
public static CollideCircles ( |
||
manifold | ||
circleA | ||
xfA | Transform | |
circleB | ||
xfB | Transform | |
Résultat | void |
public static CollideEdgeAndCircle ( |
||
manifold | The manifold. | |
edgeA | The edge A. | |
transformA | Transform | The transform A. |
circleB | The circle B. | |
transformB | Transform | The transform B. |
Résultat | void |
public static CollideEdgeAndPolygon ( |
||
manifold | The manifold. | |
edgeA | The edge A. | |
xfA | Transform | The xf A. |
polygonB | The polygon B. | |
xfB | Transform | The xf B. |
Résultat | void |
public static CollidePolygonAndCircle ( |
||
manifold | The manifold. | |
polygonA | The polygon A. | |
transformA | Transform | The transform of A. |
circleB | The circle B. | |
transformB | Transform | The transform of B. |
Résultat | void |
public static CollidePolygons ( |
||
manifold | The manifold. | |
polyA | The poly A. | |
transformA | Transform | The transform A. |
polyB | The poly B. | |
transformB | Transform | The transform B. |
Résultat | void |
public static GetPointStates ( FixedArray2 |
||
state1 | FixedArray2 |
|
state2 | FixedArray2 |
|
manifold1 | ||
manifold2 | ||
Résultat | void |
public static GetWorldManifold ( |
||
manifold | The manifold. | |
transformA | Transform | The transform for A. |
radiusA | float | The radius for A. |
transformB | Transform | The transform for B. |
radiusB | float | The radius for B. |
normal | Vector2 | World vector pointing from A to B |
points | FixedArray2 |
Torld contact point (point of intersection). |
Résultat | void |