Z
Z
Zero Tolerance2019-03-03 01:18:17
three.js
Zero Tolerance, 2019-03-03 01:18:17

How to use OrbitControls on a moving target?

How can I attach OrbitControls to the position of the object that is moving so that I can keep rotating the camera around the moving object?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Bukhman, 2019-03-03
@michaelbuhman

Try updating every frame the target vector of the OrbitControls class instance.
https://threejs.org/docs/index.html#examples/contr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question