improvement(levels): use a "cross" collision filter for weapons
This commit is contained in:
parent
5241cb8d6e
commit
0da137a3e4
|
@ -13,7 +13,7 @@ function Bullet:setFilter()
|
|||
if (other.type=="wall") then
|
||||
return 'touch'
|
||||
else
|
||||
return nil
|
||||
return 'cross'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,9 +17,9 @@ function Weapon:setFilter()
|
|||
elseif (other.type=="block") then
|
||||
return "touch"
|
||||
elseif (other.type=="ennemy") then
|
||||
return "touch"
|
||||
return "cross"
|
||||
else
|
||||
return nil
|
||||
return "cross"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue