mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
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:
parent
816e369c08
commit
53f24954e0
2 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,7 @@ var oldMode = Camera.mode;
|
||||||
function cancelLookAt() {
|
function cancelLookAt() {
|
||||||
if (lookingAtSomething) {
|
if (lookingAtSomething) {
|
||||||
lookingAtSomething = false;
|
lookingAtSomething = false;
|
||||||
|
//Camera.stopLooking();
|
||||||
Camera.mode = oldMode;
|
Camera.mode = oldMode;
|
||||||
releaseMovementKeys();
|
releaseMovementKeys();
|
||||||
}
|
}
|
||||||
|
@ -72,6 +73,9 @@ function mousePressEvent(event) {
|
||||||
// switch to independent mode
|
// switch to independent mode
|
||||||
Camera.mode = "independent";
|
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
|
// keep track of the fact that we're in this looking at mode
|
||||||
lookingAtSomething = true;
|
lookingAtSomething = true;
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,6 @@ function moveEntity(deltaTime) {
|
||||||
y: originalProperties.position.y + (count * positionDelta.y),
|
y: originalProperties.position.y + (count * positionDelta.y),
|
||||||
z: originalProperties.position.z + (count * positionDelta.z)
|
z: originalProperties.position.z + (count * positionDelta.z)
|
||||||
},
|
},
|
||||||
//radius : 0.05,
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue