2 questions.

Question 1:
When an dynamic body(the player) is standing on another dynamic body(and they both isn't moving), i cant seem to move it, by calling Get/SetLinaerVelocity(). The body's velocity changes, but it isn't moving.

Question 2:
(in this example) the dynamic bodies are all rectangles(boxes), and when colliding/responding they have a tendency to turn 90 degrees (hence they are boxes) (see screen shot):
[img]
http://img262.imageshack.us/img262/5832 ... ghtlz7.jpg[/img]
(the left gray body is the state i want to prevent, the right gray body is the state i would want)
is there a way to detect if these bodies have gone to this abnormal state?


Sorry if it is dumb questions, i just started using Box2d 🙂.
Q1: I'm guessing the body is asleep. Call b2Body::WakeUp() or use b2BodyDef::allowSleep = false.

Q2: You can use b2BodyDef::preventRotation to keep your characters from rotating.

Original thread: https://box2d.org/forum/viewtopic.php?t=111