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?

4

1 回答 1

3
camera.position.copy( object.position );
camera.position.z += object.geometry.boundingSphere.radius;
camera.lookAt( object );
于 2012-11-22T23:09:37.153 回答