I have fixtures within a compound body that are not generating contacts or collisions of any kind.
I have created long bodies comprised of 80-150 4-vertex-fixtures as static collision geometry. My problem is that blocks of 2-10 fixtures within the strip are not colliding or generating contacts of any kind, while the rest of the fixtures are colliding correctly.
-The debug rendering is showing the fixtures are there.
-I've counted the size of the fixtureList to verify they are all loaded.
-I checked the filter data of every fixture in the body: categoryBits=1, maskBits=65535, groupIndex=0 (as expected)
-I printed out the IsSensor() of each fixture, none of them are sensors.
-I verified the body IsAwake() and IsActive() == 1
-I verified that the polygon winding is correct.
-Raycasts go right through the offending fixtures.
Now things are getting weird 😕 :
-The SAME geometry DOES collide properly in different levels.
-When a copy of the body is made, this usually causes a DIFFERENT block of fixtures in the copy to stop colliding.
-Sometimes, ALL the fixtures stop colliding.
I'm pulling my hair out here. Can anyone recommend a course of action to debug this further? I've been using Box2d for a year now and I've created bodies with 300+ fixtures and never had a problem. 🙁
EDIT: In playing with it further, I made one of my strips dynamic and that made all three previously broken strips in my level behave correctly. Reverting that strip back to being static causes them all to revert to containing contiguous blocks of broken fixtures. Is someone playing a terrible joke on me?
EDIT 2: I upgraded the code to use the latest drop from SVN (as of Sept30 2010). So far I am unable to reproduce the this behavior exactly. Instead of blocks of fixtures not colliding, now I get all or nothing. Either all fixtures collide, or none do (in the entire world).
I have created long bodies comprised of 80-150 4-vertex-fixtures as static collision geometry. My problem is that blocks of 2-10 fixtures within the strip are not colliding or generating contacts of any kind, while the rest of the fixtures are colliding correctly.
-The debug rendering is showing the fixtures are there.
-I've counted the size of the fixtureList to verify they are all loaded.
-I checked the filter data of every fixture in the body: categoryBits=1, maskBits=65535, groupIndex=0 (as expected)
-I printed out the IsSensor() of each fixture, none of them are sensors.
-I verified the body IsAwake() and IsActive() == 1
-I verified that the polygon winding is correct.
-Raycasts go right through the offending fixtures.
Now things are getting weird 😕 :
-The SAME geometry DOES collide properly in different levels.
-When a copy of the body is made, this usually causes a DIFFERENT block of fixtures in the copy to stop colliding.
-Sometimes, ALL the fixtures stop colliding.
I'm pulling my hair out here. Can anyone recommend a course of action to debug this further? I've been using Box2d for a year now and I've created bodies with 300+ fixtures and never had a problem. 🙁
EDIT: In playing with it further, I made one of my strips dynamic and that made all three previously broken strips in my level behave correctly. Reverting that strip back to being static causes them all to revert to containing contiguous blocks of broken fixtures. Is someone playing a terrible joke on me?
EDIT 2: I upgraded the code to use the latest drop from SVN (as of Sept30 2010). So far I am unable to reproduce the this behavior exactly. Instead of blocks of fixtures not colliding, now I get all or nothing. Either all fixtures collide, or none do (in the entire world).