three-trackballcontrols-es6
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

three-trackballcontrols

NPM

Dependency Badge

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

Dependents (0)

Package Sidebar

Install

npm i three-trackballcontrols-es6

Weekly Downloads

2

Version

0.0.11

License

MIT

Unpacked Size

17.5 kB

Total Files

5

Last publish

Collaborators

  • benthejack