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.

I have built a simple structure with static and dynamic bodies and revolute joints. None of the bodies have weight, I've set the density to 0. Here's the structure:

enter image description here

In screen update method I do this:

b2Vec2 vec1=_revJoint1->GetReactionForce();
b2Vec2 vec4=_revJoint4->GetReactionForce();
NSLog("Joint1 y: %f , Joint4 y: %f",vec1.y,vec4.y);

I would expect the y for both revJoints to be 0, but to my surprise, it's a value like -0.263565, not 0.0000

What is more interesting is that if I drop a body with a certain weight onto this structure, both x and y of the reaction force increases, but they do not decrease back to their initial value even if I remove that body off the structure. Is this a known bug in Box2D?

share|improve this question

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.