tianyazjq / three-trackballcontrols-ts

ThreeJS TrackBallControls as a standalone and typescript compatible npm module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ThreeJS Trackball Controls

as a standalone and typescript compatible npm module.

Non maintained since march 2021

because already provided in v0.126.1 - use that instead

import { TrackballControls } from 'three/examples/jsm/controls/TrackballControls';

Installation

npm install --save three-trackballcontrols-ts

Usage

import * as THREE from 'three';
import { TrackballControls } from 'three-trackballcontrols-ts';

const camera = new THREE.SomeCamera(...);
const controls = new TrackballControls(camera, renderer.domElement);

Credit

All credit goes to TrackballControls.js contributors.

About

ThreeJS TrackBallControls as a standalone and typescript compatible npm module

License:MIT License


Languages

Language:TypeScript 100.0%