Hello, and thanks for your help in advance!
Not sure this matters, but I am using a Box2D port on Android in libgdx.
Ok, I have two groups of objects: group "A" and group "B". Group "A" needs to collide with group "B", but any shape/fixture in group "A" should not collide with another shape/fixture in group "A". I have achieved this with collision filtering by giving group "A" a categoryBit of "2" setting the mask for group "A" to "4". Then I set group "B"'s category to "4" and it's mask to "2".
Everything works fine except this special case. If I create a new object of group "A" directly on top of (at the same location) of another object in group "A", collision gets fired and Box2d seems to move that newly created object out of the way. I have searched the web and the documentation and I can't seem to find anything on this. What I would like is a way to turn this behavior off. The thought occurred to me that it could be a bug in the port to libgdx of Box2d, but I kind of doubt that. Any thoughts on this problem anyone?
Not sure this matters, but I am using a Box2D port on Android in libgdx.
Ok, I have two groups of objects: group "A" and group "B". Group "A" needs to collide with group "B", but any shape/fixture in group "A" should not collide with another shape/fixture in group "A". I have achieved this with collision filtering by giving group "A" a categoryBit of "2" setting the mask for group "A" to "4". Then I set group "B"'s category to "4" and it's mask to "2".
Everything works fine except this special case. If I create a new object of group "A" directly on top of (at the same location) of another object in group "A", collision gets fired and Box2d seems to move that newly created object out of the way. I have searched the web and the documentation and I can't seem to find anything on this. What I would like is a way to turn this behavior off. The thought occurred to me that it could be a bug in the port to libgdx of Box2d, but I kind of doubt that. Any thoughts on this problem anyone?