A turntable camera for use in 3D scenes
OTHER License
A turntable camera for use in 3D scenes. Useful as a limited alternative to orbit-camera in specific cases.
Creates a new turntable camera instance.
Calculates and returns a 4x4 view matrix based on the camera's current
configuration. Optionally, you can pass in your own data
array to update
too.
The rotation the camera should make around the Y axis, in radians.
An [x, y, z]
array, referring to the center (or, "focal point") of the camera.
The camera's distance from the focal point along the XZ plane.
The angle for the camera to look downwards, in radians. Note that this will also effect the Y position of the camera, and hence its overall distance from the focal point.
MIT. See LICENSE.md for details.