Object rotation infinitely on y Axis,

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.

[java]

@Override

public void simpleUpdate(float tpf)



{



sphere.rotate(0,1,0);



}[/java]

1 Like

Thanks.