Hi!
In my game, the physics body and the collision detection of the “hero” is declared like this:
physics.addBody(hero, "dynamic", { density = 0.0, friction = 0.0, bounce = 0.2, radius = 75 }) hero.collision = onHeroCollision hero:addEventListener("collision", hero) hero.preCollision = onHeroPreCollision hero:addEventListener("preCollision", hero)
There is also a “bomb”, which is declared like this:
physics.addBody(bomb, "static", { friction = 0.0, bounce = 0.0, isSensor = true })
If isSensor for the bomb is set to true, the precollision for the hero does not trigger when the hero collides with the bomb. It only triggers when isSensor to false. I cannot find anything about this in the documentation. Have I misunderstood anything?