From TestRotateAboutPoint code
...
public class TestRotateAboutPoint extends SimpleGame {
...
protected void simpleUpdate() {
if (tpf < 1) {
anglex = anglex + (tpf * 100f);
angley = angley + (tpf * 36f);
anglez = anglez + (tpf * 0f);
if (anglex > 360) {
anglex = 0;
}
if (angley > 360) {
angley = 0;
}
if (anglez > 360) {
anglez = 0;
}
}
b.getLocalRotation().fromAngles(
anglex * FastMath.DEG_TO_RAD,
angley * FastMath.DEG_TO_RAD,
anglez * FastMath.DEG_TO_RAD);
}
...
and here:
Quaternion qua = new Quaternion();
qua.fromAxes(anglex, angley, anglez);
Euler angles are: see definition here http://en.wikipedia.org/wiki/Euler_angles#Definition
Where:
α = anglex
β = angley
γ = anglez
Is this valid?
Please, answer me.
If is wrong, can you correct me?