Skip to content

Commit

Permalink
cameraParenting example: explicit up vector on lookAt
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Feb 29, 2016
1 parent 5c1fe2c commit f06fbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/3d/cameraParentingExample/src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void ofApp::draw(){
for(int i=0; i<kNumCameras; i++) {

// lookat node if it has one
if(lookatIndex[i] >= 0) cam[i].lookAt(testNodes[lookatIndex[i]]);
if(lookatIndex[i] >= 0) cam[i].lookAt(testNodes[lookatIndex[i]], {0.f,1.f,0.f});

// mouse orbit camera
if(doMouseOrbit[i] && ofGetMousePressed(0)) {
Expand Down

0 comments on commit f06fbbd

Please sign in to comment.