Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sorry, I could not find any tag that would suit my question.

Let me first show you the image and then write what I want to do:

enter image description here

I'm using box2D. As you can see there are three dynamic bodies connected to each other (think of it as a table from front view).The LEG1 and LEG2 are connected to the static body. (it's the ground body). Another dynamic body is falling onto the table. I need to get the compression in the LEG1 and LEG2 separately. Joints have GetReactionForce() function which returns a b2Vec, which in turn has Length() and LengthSqd functions. This will give the total sum of the forces in any taken joint. But what I need is forces in individual bodies that are connected with joints. Once you connect several bodies with a single joint it again will show the sum of forces which is not useful.Here's the case iI'm talking about:

enter image description here

share|improve this question
Thanks, @Tetrad for retagging – Mike JM Feb 26 at 20:58
1  
>> Once you connect several bodies One joint can connect only two bodies. Connect each leg to table plate, and you will get again first case. Am I wrong? – Pavel Feb 28 at 5:27
Sorry, I just forgot that a joint joins only two bodies. – Mike JM Mar 1 at 19:11

migrated from gaming.stackexchange.com Feb 26 at 20:55

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.