1.1.2 • Published 2 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
2 years ago
1.1.0
2 years ago
1.1.2
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago