player-physics
an attempt at first person shooter physics for three.js. based originally on PointerLockControls.js
from @mrdoob in three.js but heavily modified
works in the client or on the server. use browserify for client side usage
built for voxeljs and used in voxel-engine
install
npm install player-physics
example
var playerPhysics = var player = playerenabled = trueplayermoveForward = trueplayer // milliseconds since last tickconsole
using the streaming api with the interact module (for pointerlock):
var interact = var pointer = pointerpointer
license
BSD