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


7.2.67 look-recenter

(look-recenter [objectID] [cameraID])
Translates and rotates the câmera 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 câmera is also moved as close as possible to the objeto while allowing the entire objeto to be visible. Also makes sure that the y-axes of objectID and cameraID are parallel.