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.
Examples
Syntax
set(cam)
Parameters
cam
p5.Camera:
camera to copy.
This page is generated from the comments in src/webgl/p5.Camera.js . Please feel free to edit it and submit a pull request!