blaze.collision.pairwise.collidePoly
- struct
ClipVertex
;
- A clipping vertex?
- static int
clipSegmentToLine
(ClipVertex [2LU] vOut, ClipVertex [2LU] vIn, bVec2 normal, float offset);
- I don't know what this does.
Params:
ClipVertex [2LU] vOut |
? |
ClipVertex [2LU] vIn |
? |
bVec2 normal |
? |
float offset |
? |
Returns:
the length of vOut (redundant?)
- static float
edgeSeparation
(Polygon poly1, bXForm xf1, int edge1, Polygon poly2, bXForm xf2);
- Find the separation between poly1 and poly2 for a give edge normal on poly1.
BUGS:
This creates duplicates of several of the arrays, and may be a memory leak
See Also:
dsource.org/forums/viewtopic.php?t=4367&sid=57cbc83fc43c0a9756a62402b1200168
- static float
findMaxSeparation
(ref int edgeIndex, Polygon poly1, bXForm xf1, Polygon poly2, bXForm xf2);
- Find the max separation between poly1 and poly2 using edge normals from poly1
Params:
int edgeIndex |
? |
Polygon poly1 |
? |
bXForm xf1 |
? |
Polygon poly2 |
? |
bXForm xf2 |
? |
Returns:
?
- static void
findIncidentEdge
(ClipVertex [2LU] c, Polygon poly1, bXForm xf1, int edge1, Polygon poly2, bXForm xf2);
- Unknown
Params:
ClipVertex [2LU] c |
? |
Polygon poly1 |
? |
bXForm xf1 |
? |
int edge1 |
? |
Polygon poly2 |
? |
bXForm xf2 |
? |
- bool
collidePolyFluid
(Polygon polygon, FluidParticle particle, ref bVec2 penetration, ref bVec2 penetrationNormal);
- ?
Params:
Polygon polygon |
? |
FluidParticle particle |
? |
bVec2 penetration |
? |
bVec2 penetrationNormal |
? |
Returns:
?
|