Next: , Previous: look-encompass-size, Up: GCL Reference

7.2.67 look-recenter

(look-recenter [objectID] [cameraID])
Translates and rotates the camera so that it is looking in the -z direction (in objectID's coordinate system) at the center of objectID's bounding box (or the origin of the coordinate system in non-Eudlidean space). In Euclidean space, the camera is also moved as close as possible to the object while allowing the entire object to be visible. Also makes sure that the y-axes of objectID and cameraID are parallel.