Using the master branch of Rajawali I can make my camera rotate around an axis using
mRotateAnimation = new RotateAnimation3D(axis, angle);
mRotateAnimation.setDuration(4000);
mRotateAnimation.setTransformable3D(getCurrentCamera());
mRotateAnimation.setInterpolator(new DecelerateInterpolator(5f));
registerAnimation(mRotateAnimation);
mRotateAnimation.play();
provided that I have NOT set getCurrentCamera().setLookAt(0,0,0). If I do setLookAt, I get no rotation at all.
Using the 0.9 version the equivalent would seem to be
mRotateAnimation = new RotateAnimation3D(axis, angle);
mRotateAnimation.setDuration(4000);
mRotateAnimation.setTransformable3D(getCamera());
mRotateAnimation.setInterpolator(new DecelerateInterpolator(5f));
mRotateAnimation.start();
but this doesn't seem to work regardless of setLookAt(). I get no rotation at all. If I change getCamera() for another object the rotation works just as I'd expect.
What am I missing with this? Any help much appreciated.
Thanks.