How can I detect for a collision between 2 static objects? Can I use isSensor = true?
Hi @chrh02,
You can’t detect collision between 2 static bodies. In any collision, at least one body must be dynamic (or both). Box2D will not detect collision between static+static, kinematic+kinematic, or static+kinematic.
Depending on your situation, there should be a way to handle it. I’ve not found any collision scenario where I wasn’t able to resolve it somehow.
Hope this helps,
Brent
Hi @chrh02,
You can’t detect collision between 2 static bodies. In any collision, at least one body must be dynamic (or both). Box2D will not detect collision between static+static, kinematic+kinematic, or static+kinematic.
Depending on your situation, there should be a way to handle it. I’ve not found any collision scenario where I wasn’t able to resolve it somehow.
Hope this helps,
Brent