Hey everyone,
I am a new user to Box2ds forums and have been working quite hard to work on this physics system. I have managed to do quite a bit. I'm currently having a small problem with balancing objects. Currently I have a configuration as such: A balance. The beam and two boxes are dynamic whilst the circle "pivot" is static. The two objects are identically sized and are placed symettrically about the y axis (aka at -20 & at +20). If I'm not mistaken, given no other forces the system should be in a complete balance. I've tried the system with just the beam and pivot point (that is without the two identical boxes). Without the boxes the system doesn't move at all (as it should be). Once I add the two identical objects the system "balance" starts to degrade overtime. Once the boxes are added at the opposite sides of the middle of the beam for the first few seconds of the simulation (< 10s) the system remains in balance. Eventually one side seems to become slightly "heavier" and slowly causes the system to tilt and eventually fall over. I've tried moving the boxes around but no matter what I do this issue creeps up. Is this a common error? What am I missing?
I am a new user to Box2ds forums and have been working quite hard to work on this physics system. I have managed to do quite a bit. I'm currently having a small problem with balancing objects. Currently I have a configuration as such: A balance. The beam and two boxes are dynamic whilst the circle "pivot" is static. The two objects are identically sized and are placed symettrically about the y axis (aka at -20 & at +20). If I'm not mistaken, given no other forces the system should be in a complete balance. I've tried the system with just the beam and pivot point (that is without the two identical boxes). Without the boxes the system doesn't move at all (as it should be). Once I add the two identical objects the system "balance" starts to degrade overtime. Once the boxes are added at the opposite sides of the middle of the beam for the first few seconds of the simulation (< 10s) the system remains in balance. Eventually one side seems to become slightly "heavier" and slowly causes the system to tilt and eventually fall over. I've tried moving the boxes around but no matter what I do this issue creeps up. Is this a common error? What am I missing?