MCPcopy Create free account
hub / github.com/aevum/libgdx-cpp / Collide

Method Collide

src/Box2D/Collision/b2CollideEdge.cpp:234–622  ·  view source on GitHub ↗

Algorithm: 1. Classify v1 and v2 2. Classify polygon centroid as front or back 3. Flip normal if necessary 4. Initialize normal range to [-pi, pi] about face normal 5. Adjust normal range according to adjacent edges 6. Visit each separating axes, only accept axes within the range 7. Return if _any_ axis indicates separation 8. Clip

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

b2CollideEdgeAndPolygonFunction · 0.45

Calls 7

b2MulTFunction · 0.85
b2MulFunction · 0.85
b2DotFunction · 0.85
b2CrossFunction · 0.85
b2ClipSegmentToLineFunction · 0.85
NormalizeMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected