mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +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() {
|
||||
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;
|
||||
|
||||
|
|
|
@ -79,7 +79,6 @@ function moveEntity(deltaTime) {
|
|||
y: originalProperties.position.y + (count * positionDelta.y),
|
||||
z: originalProperties.position.z + (count * positionDelta.z)
|
||||
},
|
||||
//radius : 0.05,
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue