MCPcopy
hub / github.com/processing/p5.js / lookAt

Method lookAt

src/webgl/p5.Camera.js:892–904  ·  view source on GitHub ↗

* Points the camera at a location. * * `myCamera.lookAt()` changes the camera’s orientation without changing its * position. * * The parameters, `x`, `y`, and `z`, are the coordinates in "world" space * where the camera should point. For example, calling * `myCamera.lookAt(10, 2

(x, y, z)

Source from the content-addressed store, hash-verified

890 * }
891 */
892 lookAt(x, y, z) {
893 this.camera(
894 this.eyeX,
895 this.eyeY,
896 this.eyeZ,
897 x,
898 y,
899 z,
900 this.upX,
901 this.upY,
902 this.upZ
903 );
904 }
905
906 ////////////////////////////////////////////////////////////////////////////////
907 // Camera Position Methods

Callers 1

p5.Camera.jsFile · 0.80

Calls 1

cameraMethod · 0.95

Tested by

no test coverage detected