local function spaceCollision(event) local phase = event.phase local target = event.target local other = event.other if phase == "began" then if other.collisionType == "eggplant" then glass.alpha = 0 physics.removeBody(glass) end end end space:addEventListener("collision", spaceCollision)
The physics.removeBody part isn’t working, when the object collides with the barrier labeled space, the glass disappears but not the the physics body, anyone know why??