Creates a new p5.Camera object and sets it as the current (active) camera.
The new camera is initialized with a default position (0, 0, 800) and a default perspective projection. Its properties can be controlled with p5.Camera methods such as myCamera.lookAt(0, 0, 0).
Note: Every 3D sketch starts with a default camera initialized. This camera can be controlled with the functions camera(), perspective(), ortho(), and frustum() if it's the only camera in the scene.
Note: createCamera() can only be used in WebGL mode.
Ejemplos
Returns
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.