/axis3d-orbit-camera

Orbit camera controller for Axis3D

Primary LanguageJavaScriptMIT LicenseMIT

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