I recently updated to a newer version of Box2d (IIRC I went from revision 141 to 197). Unfortunately, several strange and mystifying bugs appeared in my game. As far as I can tell, this is due to the body of the boss character falling asleep, at which point it refuses to collide with any newly created static bodies. Since I use static bodies for the explosions, this makes it invincible!
Strangely, it does register collisions with existing static bodies, though this does not wake it up.
Anyway, I am trying to figure out why this happened and what the best way to fix it is. Were there any changes to make sleeping more aggressive or failing to wake up on contact?
I think this is a bug because if a created body causes a contact, it really should wake up the contacted body and generate a collision. However, no contacts are generated. The BeginContact callback is not called.
Strangely, it does register collisions with existing static bodies, though this does not wake it up.
Anyway, I am trying to figure out why this happened and what the best way to fix it is. Were there any changes to make sleeping more aggressive or failing to wake up on contact?
I think this is a bug because if a created body causes a contact, it really should wake up the contacted body and generate a collision. However, no contacts are generated. The BeginContact callback is not called.