Box2DFlash on Linux

I've modified the TestBed code to store the last selected body, and then apply forces to it depending on keypresses. However, I'm finding that functions like ApplyTorque() are having no effect.

For example, this code applies a fairly large torque when the right arrow key is pressed:

Code:
if (Input.isKeyPressed(39)){ // Right Arrow
   // todo: rotate CW
   if(m_currTest.selectedObject){
      trace('rotate CW')
      trace('torque1:'+m_currTest.selectedObject.m_torque)
      m_currTest.selectedObject.WakeUp()
      m_currTest.selectedObject.ApplyTorque(1000)
      trace('torque2:'+m_currTest.selectedObject.m_torque)
   }
}


And when I press the right arrow key, Flash Tracer is showing:
rotate CW
torque1:0
torque2:1000
rotate CW
torque1:0
torque2:1000
rotate CW
torque1:0
torque2:1000

Why is the torque being reset to 0 at each step? There's not much in the manual about applying forces and Googling for "box2d ApplyTorque" returned only 3 results, none useful.
Hi Cerin,

If you're using 1.4.3 (Which I believe you are) a torque of 1000 is not large at all.
In the test crank example I had to use a torque of 500 million on the motor.
This is because the examples are using pixel units, which results in the bodies having very large masses.
Try a torque of at least one million, or some large number multiplied by the bodies mass, e.g the mouse joint in the examples uses a force of 30000 * body.m_mass.

Hope that helps,
-Matt

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