提交 3c015897 编写于 作者: M Max Ogden

fix Raycaster instance references to use Raycaster.ray

上级 9e878eab
......@@ -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.
先完成此消息的编辑!
想要评论请 注册