Mickael Torralvo
Mickael Torralvo

Reputation: 41

threejs orbitController Camera LookAt doesn't work

I'm using threejs to develop an application. I apply OrbitControls to my camera. But for some reasons, I need sometimes to set manually the rotation of the camera. My problem is that the camera's lookAt() function doesn't work because it overrides the orbitController. I don't know how to do it, Quaternion.lerp() doesn't work also. I just need to set manually the rotation of the camera.

Upvotes: 1

Views: 1233

Answers (1)

Mouloud85
Mouloud85

Reputation: 4234

You can turn orbitcontrols off with controls.enabled=false

Three.JS Orbit Controls - enabling and disabling without position jumping

Dragging and Clicking Objects with Controls

Upvotes: 2

Related Questions