Help me fine tune jit.gl.camera to use it like a spaceship in 3D space
Nov 19 2016 | 3:51 pm
Hello again,
Today I'd like to navigate a camera viewpoint through a jitter world like I was controlling a space ship, watching a magnificent space show.
Thus far I have used jit.gl.camera, and I have made a nice patch that controls its "lookat" and "position" attributes. Positioning manouvring works nice, and the lookat part of the patch works well usually too (turning to the right makes me look to the right), but a problem seems to occur when my I position myself behind the object I'm watching (negative Z value on "positioning"). When I try to look to the right my camera turns left! Things get weird! Help!
To make my patching goal clearer, I'd like to "move my spaceship nose" with the lookat attribute, so that when I'm starting my engines and put my joystick forwards, I will travel towards the way my nose is pointing.
TL;DR: Is it possible to turn the camera angle relative to the cameras position in the jitter 3D world?
As a gift for helping and/or reading, have my spaceship.