Skip to content

mv.process.collision

Return the first live process that collides with the given one.

Parameters

  • process — The source process handle.
  • target — A constructor or handle to test against.
local hit = mv.process.collision(self, Enemy)
if hit then print(hit.id) end

Related: mv.process.collisions.

See the lua processes guide for more examples and limits.