Physics · const
MAX_PAIR_MANIFOLDS
How many contact planes one pair may produce.
Explained in Your first game, Rigid bodies.
const MAX_PAIR_MANIFOLDS = 32import { MAX_PAIR_MANIFOLDS } from '@driftengine/physics';In depth
The same number as MAX_BODY_PARTS, so a compound against a single convex shape can never
overflow: every part gets a plane. Two compounds can, at up to 32 by 32 part pairs against 32
slots, and the overflow rule there is the mesh path's — stop when the set is full. That is the one
place in this design where a contact can be dropped without anybody being told, and what would
make it matter is two 32-part bodies interpenetrating deeply.