I am trying to figure out how to use correctly body.applytorque(float torque, boolean wake)
method on a body with a center of mass, to accelerate it's angular velocity. I want to apply an angular acceleration, in degrees per square second.
According to the libGDX doc, torque
parameter uses Newton-meters. To set it, i'll use the formula :
= I α
where :torque[N-m], I:mass moment of inertia, α:acceleration
on the body :
// java
float acceleration = 120f; // deg/s²
float inertia = body.getInertia();
body.applyTorque(inertia * (float)Math.toRadians(acceleration), true);
but this leads to wrong acceleration, same thing with the mass.
What is the proper use of that method, in deg/s²?