Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Change move to more intuitive behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocf committed May 12, 2015
1 parent 84d35fb commit d67e01e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions App/objViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,19 +241,12 @@ window.onload = function init() {
}
else {
if (mousedown) {
var camera_rotate = trackball.rotation(lastcanX, lastcanY,
actualcanX, actualcanY, 'm');
var camera_rotate = trackball.rotation(actualcanX, actualcanY,
lastcanX, lastcanY,'m');

eye = multMatrixVec(camera_rotate, eye);
at = multMatrixVec(camera_rotate, at);
up = multMatrixVec(camera_rotate, up);

// var camera_quaternion = trackball.rotation(lastcanX, lastcanY,
// actualcanX, actualcanY, 'q');
//
// eye = camera_quaternion.rotate(eye);
// at = camera_quaternion.rotate(at);
// up = camera_quaternion.rotate(up);
}
}
break;
Expand Down

0 comments on commit d67e01e

Please sign in to comment.