Skip to content

mv.collision.overlap

Test two transformed shapes. It does not query processes.

Parameters

  • shape_a — A circle or rect shape.
  • transform_a — A table with x, y, angle and scale, or nil.
  • shape_b — A circle or rect shape.
  • transform_b — A transform or nil.
local hit = mv.collision.overlap(body, {x = 12, y = 10}, wall, nil)

Related: mv.collision.circle, mv.collision.rect.

See the collision guide for more examples and limits.