A very basic camera for use in WebGL projects
Want to see pretty graphs? Log in now!
npm install basic-camera
|8||downloads in the last week|
|24||downloads in the last month|
|Last Published By|
|Version||1.1.0 last updated 14 days ago|
camera = require('basic-camera')([pos])
Creates a new camera: optionally, you can pass in
pos to set the initial
vec3 representing the
position of the camera. It's array-like, so you can just set the
 indices to change the position.
Rotates the camera along the x-axis by
Rotates the camera along the y-axis by
Rotates the camera along the z-axis by
vec3 to a vector corresponding to the camera's direction.