three-pointerlock-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

three-pointerlock

This is an adaptation of three.js' PointerLockControls to a common js module, based itself on three.fly.

usage

// 1. Create pointer lock controls:
var PointerLockControls = require('three-pointerlock');
var controls = new PointerLockControls(camera);
 
// 2. Inside your update scene loop (e.g. inside requestAnimationFrame()):
controls.update(1); // `1` is time delta.

install

With npm do:

npm install three-pointerlock

license

MIT

Package Sidebar

Install

npm i three-pointerlock-ts

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

86.8 kB

Total Files

9

Last publish

Collaborators

  • bcangussu