Skip to content

Collision

Build shape colliders and query collisions. See the collision guide.

Function Summary
collision Find colliding processes. Call collision(target) to query the current process; mv.collision also holds the shape constructors.
mv.collision.circle Create a circle shape
mv.collision.overlap Test two transformed shapes
mv.collision.rect Create a rectangle shape
rect_contains Test whether a rectangle contains another.
rect_overlaps Test whether two rectangles overlap.