|
@@ -775,8 +775,16 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
|
|
|
const endPosition = pano.position.clone()
|
|
const endPosition = pano.position.clone()
|
|
let T = Potree.config.transitionsTime
|
|
let T = Potree.config.transitionsTime
|
|
- let maxTime = this.isAtPano() ? T.panoToPanoMax : T.flyIn
|
|
|
|
|
|
+ /* let maxTime = this.isAtPano() ? T.panoToPanoMax : T.flyIn
|
|
let duration = toPano.duration == void 0 ? (T.flyMinTime+Math.min(T.flytimeDistanceMultiplier * dis, maxTime)) : toPano.duration
|
|
let duration = toPano.duration == void 0 ? (T.flyMinTime+Math.min(T.flytimeDistanceMultiplier * dis, maxTime)) : toPano.duration
|
|
|
|
+ */
|
|
|
|
+ let maxDis = this.isAtPano() ? T.maxDistanceThreshold : T.maxDistanceThresholdFlyIn
|
|
|
|
+ let duration = Math.min(dis, T.maxDistanceThreshold) * T.flytimeDistanceMultiplier + T.flyMinTime
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
if(toPano.useBound){
|
|
if(toPano.useBound){
|
|
duration = Math.min(1500, duration)
|
|
duration = Math.min(1500, duration)
|
|
toPano.easeName = 'easeInOutQuad'
|
|
toPano.easeName = 'easeInOutQuad'
|