Rotates the camera left and right.
Panning 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.pan(0.001), rotates the camera to the right. Passing a negative angle, as in myCamera.pan(-0.001), rotates the camera to the left.
Note: Angles are interpreted based on the current angleMode().
Ejemplos
Sintaxis
pan(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.