Get unlimited public & private packages + team-based management with npm Teams.Learn more »

three-trackballcontrols

0.0.8 • 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

Install

npm i three-trackballcontrols

DownloadsWeekly Downloads

3,108

Version

0.0.8

License

MIT

Unpacked Size

17.3 kB

Total Files

4

Last publish

Collaborators

  • avatar