[solved] How to exlude collision detection with a certain shape in HC (hardon collider)
Posted: Mon Jan 08, 2018 12:14 pm
Sorry if this has been answered over and over again, but the search here just won't obey...
Right now Ii'm using this
to detect whether I should/shouldn't delete a shape.
So... How can I tell a shape to ignore collisions with some particular object?
Thanks in advance!
Right now Ii'm using this
Code: Select all
for shape, delta in pairs(game.world:collisions(bullet.hco)) do
if shape~=game.player.body then
del[#del+1] = i break
end
end
- game.world is a HC instance
- bullet.hco stores the game.world:point() result
- game.player.body is the result of game.world:circle() and keeps tabs on the player.
So... How can I tell a shape to ignore collisions with some particular object?
Thanks in advance!