how to rotate an object infinitely on y Axis,
I tried the following code, but, it dont work.
[java] rotQ = new Quaternion();
rotQ.fromAngleAxis(0.01f, Vector3f.UNIT_Y);
protected void simpleUpdate() {
sphere.getLocalRotation().multLocal(rotQ);
}[/java]
- Which on should I rotate, the geometry or the physics node? I guess the geometry.