Points the camera at a location.
myCamera.lookAt() changes the camera’s orientation without changing its position.
The parameters, x, y, and z, are the coordinates in "world" space where the camera should point. For example, calling myCamera.lookAt(10, 20, 30) points the camera at the coordinates (10, 20, 30).
Ejemplos
Sintaxis
lookAt(x, y, z)
Parámetros
x-coordinate of the position where the camera should look in "world" space.
y-coordinate of the position where the camera should look in "world" space.
z-coordinate of the position where the camera should look in "world" space.
Referencias Relacionadas
camera
camera() establece la posición y orientación de la cámara actual en un dibujo 3D.
createCamera
Crea un nuevo objeto p5.Camera y lo establece como la cámara actual (activa).
frustum
frustum() cambia la perspectiva por defecto de la cámara actual en un boceto 3D.
linePerspective
Habilita o deshabilita la perspectiva de las líneas en bocetos 3D.