Scoping qualifiers and collisions
I've come across an unusual issue and I'm not sure if it's a bug or intended behaviour.
So I've got two objects - they both belong to the same qualifier group, but one has a flag "collideswithBG" turned on (the blue object), and the other turned off (the red object)
Attachment 26125Attachment 26124
My code is set up like this:
What I *intended* to happen was that the blue object would stop once it hits a backdrop, and the red object would pass through since the flag "collideswithBG" is turned off. Instead, both objects will stop once they hit the background.
However, clicking on the objects works as intended - clicking on the red object won't destroy it since the flag is turned off, and clicking the blue object will destroy it. Oddly, once the blue object is destroyed (the one with the flag turned on), the red object then falls through.
Here's the source: Attachment 26127
This is using the physics engine objects/movements, but similar things happen when using the built in non-Box2d bouncing ball movement
(Now, this issue can be fixed quite easily by running a loop on each of the objects every frame and comparing flags within that loop, but it feels like a discrepancy in how scoping works between clicking on an object vs collisions.)
So my question is, is this a bug or intended behaviour?