#Odd interactions with Areas assigned to PhysicsServer2D objects

6 messages · Page 1 of 1 (latest)

latent oak
#

You are setting the mask and layer with a int that is a bit mask.
2 is 01000
3 is 11000

#

If I'm not mistaken, would explain your issue

latent oak
#

In your case the solution would be to change the 3 to a 4 right?

#

Maybe I'm not sure what you are trying to accomplish or I don't understand the docs. But in your first code you were masking the layer imo, so detection should trigger

#

Maybe I put it wrong above. You are SUPPOSED to set the masks/layers with an int that's a bitmask

#

And I thought maybe you misunderstood and set an object to layer 3 by using 3 instead of the correct value 4 (= 001000)