mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 09:33:49 +02:00
Merge pull request #13804 from thoys/fix/create/cantMoveFocusCameraOutPastLowLimit
MS17291: Create-app increase focus distance limit
This commit is contained in:
commit
73ef2ff09c
1 changed files with 3 additions and 9 deletions
|
@ -28,7 +28,9 @@ var FOCUS_MIN_ZOOM = 0.5;
|
|||
var ZOOM_SCALING = 0.02;
|
||||
|
||||
var MIN_ZOOM_DISTANCE = 0.01;
|
||||
var MAX_ZOOM_DISTANCE = 200;
|
||||
|
||||
// The maximum usable zoom level is somewhere around 14km, further than that the edit handles will fade-out. (FIXME: MS17493)
|
||||
var MAX_ZOOM_DISTANCE = 14000;
|
||||
|
||||
var MODE_INACTIVE = 'inactive';
|
||||
var MODE_ORBIT = 'orbit';
|
||||
|
@ -255,14 +257,6 @@ CameraManager = function() {
|
|||
that.updateCamera();
|
||||
}
|
||||
|
||||
that.getZoomPercentage = function() {
|
||||
return (that.zoomDistance - MIN_ZOOM_DISTANCE) / MAX_ZOOM_DISTANCE;
|
||||
}
|
||||
|
||||
that.setZoomPercentage = function(pct) {
|
||||
that.targetZoomDistance = pct * (MAX_ZOOM_DISTANCE - MIN_ZOOM_DISTANCE);
|
||||
}
|
||||
|
||||
that.pan = function(offset) {
|
||||
var up = Quat.getUp(Camera.getOrientation());
|
||||
var right = Quat.getRight(Camera.getOrientation());
|
||||
|
|
Loading…
Reference in a new issue