提交 840d5085 编写于 作者: M Mr.doob

Added namespace to PointerLockControls. Fixes #2591.

上级 23f9161f
var PointerLockControls = function ( camera ) {
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.PointerLockControls = function ( camera ) {
var scope = this;
......
......@@ -189,7 +189,7 @@
light.position.set( -1, - 0.5, -1 );
scene.add( light );
controls = new PointerLockControls( camera );
controls = new THREE.PointerLockControls( camera );
scene.add( controls.getObject() );
ray = new THREE.Ray();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册