How can i stop camera navigation while tweening

camera-controls
tweening
tween

#1

i want to stop camera navigation while its tween, i have tried

if(eventJSVar.shiftKey)
new TWEEN.Tween( Camera.position )
.to( { x: 50,y:50, z : 50}, 2000)
.easing( TWEEN.Easing.Quadratic.InOut)
.onUpdate(function() { Camera.navigationMode = “” })
.onComplete(function() {Camera.navigationMode = “Spin” })
.start();

but i doesn’t work


#2

What type of the Camera object?
Could you provide a live code example with this type of object?


#3

Perspective Camera


#4

And where did you find that .navigationMode property of THREE.PerspectiveCamera()?
Also, you didn’t provide a live code example. Without it, it’s hard to imagine what’s happening in your scene whilst tweening.


#5

What do you actually mean with “camera navigation”?