cameraToWorld() is not returning what I would expect. Maybe something I am doing wrong.
Shouldn’t cam.cameraToWorld(ofVec3f(0,0,0) and cam.getPosition() return the same value ?
cam.setPosition(30, 0, 0);
cout << cam.getPosition() << endl;
cout << cam.cameraToWorld(ofVec3f(0,0,0) << endl;
30, 0, 0
16.7111, 0, -7.92078e-07
The camera coordinate origin should be at the world position of the camera i would think (?)… I tried using glm::vec3 types as well - same result.