How to force to contact two static bodies? by default there is no colisee between them, i.e. This setting is higher than the filter .. What is it for? I wanted to create a static explosion inside static objects, after which, by the loss of life, they became dynamic and flew away from a static explosion.

  • one
    Can you just apply force to them? - VTT
  • Static bodies, by definition, cannot influence each other, roughly speaking, their mass tends to infinity, in practice physics simply does not act on them. So if you want to throw them in different directions, then you need to make each such body dynamic and apply force to each of them. - RiotBr3aker
  • Yes, it's all clear that you can scatter the bodies, I just wanted to use the properties of the box2d itself so as not to collectively code))) - Anton
  • the only approximate version turned out to be this: a static body is created, after 1 step it becomes dynamic, it colossal and the bodies repel from it but also it repels itself ... but it is necessary that it stand still - Anton
  • Since you are trying to make an explosion effect through collisions, then you do n’t understand how the collisions and forces acting on the bodies work. - RiotBr3aker

1 answer 1

if (this_object && any_object) { if ((std::string)any_object->type == (std::string)"world_body") { any_object->hitme = true; any_object->hitdamage = this_object->Damage; contact->SetEnabled(false); } } 

solved the issue of missing contact after exposure and everything ..