* 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)
| 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 |