参考 roll()

roll()

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().

示例

语法

roll(angle)

参数

angle
Number:

amount to rotate camera in current angleMode units.

Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Camera.js and open a pull request!

相关参考