Rotates the camera up and down.
Tilting rotates the camera without changing its position. The rotation happens in the camera’s "local" space.
The parameter, angle, is the angle the camera should rotate. Passing a positive angle, as in myCamera.tilt(0.001), rotates the camera down. Passing a negative angle, as in myCamera.tilt(-0.001), rotates the camera up.
Note: Angles are interpreted based on the current angleMode().
Ejemplos
Sintaxis
tilt(angle)
Parámetros
amount to rotate in the current angleMode().
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.