0

I have a scene with a THREE.Object3D object in it. The object consists of several child objects, so it does not have geometry directly.

How can I position and focus the camera to look at the object?

1 Answer 1

3
camera.position.copy( object.position );
camera.position.z += object.geometry.boundingSphere.radius;
camera.lookAt( object );
Sign up to request clarification or add additional context in comments.

1 Comment

I'm sorry for being a bit unclear. But my object does not have a geometry, it is an object that has several child objects.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.