Remove locked target from ArcRotateCamera

Hello everyone :wave:

I am currently using ArcRotateCamera.lockedTarget to make my camera orbit around a mesh and disable camera panning. Is there a simple way for me to remove the locked target from my camera and re-enable camera panning? Essentially, I am looking for a unlockTarget/resetTarget method.

Best,
Sam

Have you tried setting lockedTarget to null? Just guessing - haven’t tried myself.

1 Like

Hi @inteja. Yes, this seems to do the trick! If the community would like, I’d be happy to open up a quick PR to update the lockedTarget documentation to note this solution. :grinning: :clinking_glasses:

1 Like

Would be great, thanks !!!