Package Exports
- three-trackballcontrols
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (three-trackballcontrols) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
three-trackballcontrols
A module for using THREE.TrackballControls with nodejs
Setup and Installation
Pre-requisites
- Three.js installed via npm (
npm install three
)
Installation
npm install three-trackballcontrols
Usage
Assuminng that you're using three-trackballcontrols
in the same code as three
,
all you have to do is require it right after three
.
var THREE = require('three');
var TrackballControls = require('three-trackballcontrols');
And when you're setting up your camera:
this.controls = new TrackballControls( this.camera, this.renderBox );
Then you're off to the races!
To-Dos
- Testing