提交 2662bab9 编写于 作者: M Mr.doob

Merge remote-tracking branch 'maxogden/pointerlock-bugfix' into dev

......@@ -193,7 +193,7 @@
scene.add( controls.getObject() );
ray = new THREE.Raycaster();
ray.direction.set( 0, -1, 0 );
ray.ray.direction.set( 0, -1, 0 );
// floor
......@@ -284,8 +284,8 @@
controls.isOnObject( false );
ray.origin.copy( controls.getObject().position );
ray.origin.y -= 10;
ray.ray.origin.copy( controls.getObject().position );
ray.ray.origin.y -= 10;
var intersections = ray.intersectObjects( objects );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册