Updates based on PR comments

Commented out Camera.stopLooking and Camera.keepLookingAt . This can be
put back when we merge back the C++ issue.
This commit is contained in:
Chris Collins 2015-01-07 11:15:30 -08:00
parent 816e369c08
commit 53f24954e0
2 changed files with 4 additions and 1 deletions

View file

@ -22,6 +22,7 @@ var oldMode = Camera.mode;
function cancelLookAt() {
if (lookingAtSomething) {
lookingAtSomething = false;
//Camera.stopLooking();
Camera.mode = oldMode;
releaseMovementKeys();
}
@ -72,6 +73,9 @@ function mousePressEvent(event) {
// switch to independent mode
Camera.mode = "independent";
// tell the camera to fix it's look at on the point we clicked
- //Camera.keepLookingAt(intersection.intersection);
// keep track of the fact that we're in this looking at mode
lookingAtSomething = true;

View file

@ -79,7 +79,6 @@ function moveEntity(deltaTime) {
y: originalProperties.position.y + (count * positionDelta.y),
z: originalProperties.position.z + (count * positionDelta.z)
},
//radius : 0.05,
};