Skip to content

jzfgo/three-pointerlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Three.js Pointer Lock Controls as common js module

Resources

License

Stars

Watchers

Forks

Packages

No packages published