I am trying to animate a camera in spherical coordinates:
and distance from center to look at.
plus, very importantly, I need to be able to control the roll (tilt) of the camera. the following patch illustrates this with the help of a sphere in the center and a box that moves where the camera should be.
now if I apply this jit.anim.node objects to a jit.gl.camera object, it doesnt work at all!
I have been able to create an alternative patch that does it in an oldfashioned way:
put here I cannot control the roll(tilt)-angle (at least my linear algebra abilities fail me here) and the jit.anim.node would be a far more elegant solution.
Thank you for this solution. I will change my patch now accordingly. I circumvented this limitation in turning the complete scene around the camera, which was sitting like a lame duke in the center of the universe while everything was turning around itself. But I prefer your solution because its less mindwrapping.
I noticed there are a couple of get-messages that are not documented, like