Rotates the camera in a clockwise/counter-clockwise direction.
Rolling rotates the camera without changing its orientation. 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.roll(0.001), rotates the camera in counter-clockwise direction. Passing a negative angle, as in myCamera.roll(-0.001), rotates the camera in clockwise direction.
Note: Angles are interpreted based on the current angleMode().
Ejemplos
Sintaxis
roll(angle)
Parámetros
amount to rotate camera in current angleMode units.
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.