🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

three-pointerlock-ts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-pointerlock-ts

Three.js Pointer Lock Controls as a typescript module

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

threejs

FAQs

Package last updated on 19 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts