set()

Sets the camera’s position, orientation, and projection by copying another camera.

The parameter, cam, is the p5.Camera object to copy. For example, calling cam2.set(cam1) will set cam2 using cam1’s configuration.

Ejemplos

Sintaxis

set(cam)

Parámetros

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

Referencias Relacionadas