axis3d-orbit-camera
v1.0.0
Published
A perspective camera with orbit controls
Downloads
5
Readme
axis3d-orbit-camera
Orbit camera controller for Axis3D.
Installation
$ npm install axis3d axis3d-orbit-camera
Usage
const { PerspectiveCamera } = require('axis3d/camera')
const { Context } = require('axis3d')
const ctx = new Context()
const orbitCamera = new OrbitCameraController(ctx, {
camera: new PerspectiveCamera(ctx)
})
orbitCamera(() => {
// scene
})
License
MIT