Skip to content

Function: CollidePolygons()

CollidePolygons(manifold, polyA, xfA, polyB, xfB): void

Find edge normal of max separation on A - return if separating axis is found Find edge normal of max separation on B - return if separation axis is found Choose reference edge as min(minA, minB) Find incident edge Clip

The normal points from 1 to 2

Parameters

manifold

Manifold

polyA

PolygonShape

xfA

TransformValue

polyB

PolygonShape

xfB

TransformValue

Returns

void