Hello,
I began using Box2D today and I set up a simulation which constantly changes the gravity vector based on user input.
I have about 16 square bodies moving around and stacking on each other but when they come the rest, or stack together, they never move again.
Even if the gravity vector changes drastically.
I've tried iterating through each body and calling WakeUp(); on each one but they still do not move. I'm also calling world->SetGravity(); each frame to set the new gravity vector.
Is there a technique I should use so my pile of objects will continue to move even after they have come to rest?
I began using Box2D today and I set up a simulation which constantly changes the gravity vector based on user input.
I have about 16 square bodies moving around and stacking on each other but when they come the rest, or stack together, they never move again.
Even if the gravity vector changes drastically.
I've tried iterating through each body and calling WakeUp(); on each one but they still do not move. I'm also calling world->SetGravity(); each frame to set the new gravity vector.
Is there a technique I should use so my pile of objects will continue to move even after they have come to rest?