hey all
I think I misunderstand something about how orientation can be set in a node or this is a strange bug…
I have the following code:
ofCamera cam;
cam.setPosition(ofVec3f(ofGetWidth()*.5, ofGetHeight()*.5, -400));
cam.lookAt(ofVec3f(ofGetWidth()*.5, ofGetHeight()*.5, 0), ofVec3f(0, -1, 0));
cout << cam.getOrientationEuler() << endl;
cam.setOrientation(cam.getOrientationEuler());
cout << cam.getOrientationEuler() << endl;
ofQuaternion(ofVec3f(0, 0, 180));
cout << cam.getOrientationEuler() << endl;
The output of this is:
[tt]
0, 0, 180
-5.00896e-06, -180, -180
-5.00896e-06, -180, -180
[/tt]
But I was expecting
[tt]
0, 0, 180
0, 0, 180
0, 0, 180
[/tt]
Anyone an idea why?