Measuring the force a body applies to another.
Posted: Mon Nov 01, 2010 6:50 pm
My chipmunk space has 4 static bodies with 1 segment each one to conform the edges of the screen.
Then I add circles inside, that act as bubbles.
I need to know when the screen is full of bubbles, and as all bubbles are of -very- different sizes, it's not that easy.
So I though of measuring the force the bubbles make to the "walls", but the vector f of the bodies of the walls is always zero, even when all the bubles are pushing the four walls and shaking because they are overlapping and chipmunk is starting to behave weird.
Can I measure the actual force being applied by the other bodies to the wall?
Thanks!
Then I add circles inside, that act as bubbles.
I need to know when the screen is full of bubbles, and as all bubbles are of -very- different sizes, it's not that easy.
So I though of measuring the force the bubbles make to the "walls", but the vector f of the bodies of the walls is always zero, even when all the bubles are pushing the four walls and shaking because they are overlapping and chipmunk is starting to behave weird.
Can I measure the actual force being applied by the other bodies to the wall?
Thanks!