项目作者: omanoel

项目描述 :
ThreeJS TrackBallControls as a standalone and typescript compatible npm module
高级语言: TypeScript
项目地址: git://github.com/omanoel/three-trackballcontrols-ts.git
创建时间: 2019-04-11T10:01:35Z
项目社区:https://github.com/omanoel/three-trackballcontrols-ts

开源协议:MIT License

下载


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

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

Installation

  1. npm install --save three-trackballcontrols-ts

Usage

  1. import * as THREE from 'three';
  2. import { TrackballControls } from 'three-trackballcontrols-ts';
  3. const camera = new THREE.SomeCamera(...);
  4. const controls = new TrackballControls(camera, renderer.domElement);

Credit

All credit goes to TrackballControls.js contributors.