Note: I haven’t tested the code, but this should give you an idea
[lua]local obj1
local obj2
– define your obj2 here as the floor…
– define the collision function first
local onCollide = function (self, event)
if event.phase == “began” then
– do something, example: explosion or something
print(“explosion”)
– remove the obj1, self is referring back to obj1
self:removeSelf()
self = nil