1.1.2 • Published 3 years ago
lesca-threejs-orbitcontrols v1.1.2
Why use it?
add OrbitControls setAzimuthalAngle and getPolarAngle methods.
Live Demo
Installation
npm install lesca-threejs-orbitcontrols --save
Usage
import * as THREE from 'three';
import { OrbitControls } from 'lesca-threejs-orbitcontrols';
const renderer = new THREE.WebGLRenderer();
const camera = new THREE.PerspectiveCamera(75, 16 / 9, 0.1, 1000);
// create controls object
const controls = new new OrbitControls(THREE)(camera, renderer.domElement);
// keep update
function animate() {
requestAnimationFrame(animate);
controls.update();
}
animate();
Development
Methods
method | description |
---|---|
.setPolarAngle(angle:number) | set Polar Angle |
.setAzimuthalAngle(angle:number) | set Azimuthal Angle |
Features
- maintain if necessary
1.1.1
3 years ago
1.1.0
3 years ago
1.1.2
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.15
3 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago