Module dagon.collision.mpr

Minkowski Portal Refinement algorithm.

Description

The dagon.collision.mpr implements the Minkowski Portal Refinement (MPR) algorithm for collision detection between convex shapes. This module provides a function to test for intersection and retrieve contact information between two CollisionShape objects.

Functions

NameDescription
mprTest(s1, s2, c) Tests for intersection between two convex shapes using the MPR algorithm and computes the contact point, normal, and penetration depth.