How to check "pressure" on body from objects above it?

Okay so im really really sorry for makin a thread but im little tired of figurin out by myself 🙁 i really love box2d even if there is load of things i do not understand.

Like now i have game where there are TNT explosives. If they fall off from too big high, and hit a ground with a great force, they should explode. If on them there are few other blocks, that weight a lot, tnt should explode.

How do i check if body is heavily pressured? i really have no clue, sorry for that 🙁 im using box2d 2.0a or something like that i think. Pre fixture version without buyonancy controller.

BTW thanks erin and boris for such a wonderfull tool. I started to learn math and physics because of box2d after a few years i finished my education 😛
EDIT: wow I was retarded.
its not stright forward to make an explosion. But for calculating how hard the impact is, you can look at this tutorial:
http://www.kerp.net/box2d/displaylesson ... &lesson=15
yambanshee wrote:
its not stright forward to make an explosion. But for calculating how hard the impact is, you can look at this tutorial:
http://www.kerp.net/box2d/displaylesson ... &lesson=15


Yeah watched all of them, and of course i used b2contact listener class to check out. But how I used it was just wrong on many levels. All i needed was in result function properties.

Topic can be closed now.
Thanks erin and boris for such a wonderfull tool. I finished my education. 😀

Original thread: https://box2d.org/forum/viewtopic.php?t=4861