distance3d.mpr.mpr_intersection

distance3d.mpr.mpr_intersection(collider1, collider2, mpr_tolerance=0.0001, max_iterations=100)[source]

Intersection test with Minkowski Portal Refinement (MPR).

Parameters:
collider1ConvexCollider

Convex collider 1.

collider2ConvexCollider

Convex collider 2.

mpr_tolerancefloat

Boundary tolerance for MPR algorithm

max_iterationsint, optional (default: 100)

Maximum number of iterations.

Returns:
intersectionbool

Do the two colliders intersect?