Hi All,

I am trying rotate a camera around an object.

The object is assigned to a pathAnimator and the camera to another
one. Both Animators load the same path so the camera and the object
are always on the same coordinate. To manipulate the relative position
to the object I access the offset Number3D of the cameraPathAnimator
and update it according to the camera rotationY.

So this is simple trigonometry. I define the x and z offset of the
camera with cosine and sine. What I need for the calculation is the
current angle of the camera. If I trace the rotationY of the camera
the output is incorrect. It starts at  0, goes to 90 as expected.
After 90 degrees goes up 179 and then jumps to 0.

The returned value should be linear to the rotation of the object and
range from 0 - 359 degrees.
Has Anyone ideas for a workaround? Help would be appreciated

Thanks, Patrick

Reply via email to