I'm pulling accelerometer data from a mobile device and am trying to rotate the camera accordingly on all 3 axes. I tried using the setRotation method, which works for two absolute coordinate rotations, but setting a third screws up the whole rotation.
I'm obviously rusty on my matrix math. Hoping to save some time by asking how I can set all three coordinate rotations for the camera.
Thanks!
How to set all 3 rotations of camera
I believe camera scenenodes now have a 'bindTargetAndRotation' flag that, if enabled, allows you to rotate and orient a camera via setRotation. You would just add your accelerometer rotations ontop of the set rotation.
__________________________________
...you'll never know what it's like, living your whole life in a dream...
...you'll never know what it's like, living your whole life in a dream...