提交 f6c07e89 编写于 作者: B Brian Peiris

Ignore intersections with crosshair

上级 c9fd6070
......@@ -58,6 +58,7 @@
var vrEffect;
var vrControls;
var cubes = [];
var INTERSECTED;
var radius = 100, theta = 0;
var crosshair;
......@@ -115,6 +116,7 @@
object.scale.z = Math.random() + 0.5;
scene.add( object );
cubes.push( object );
}
......@@ -188,7 +190,7 @@
raycaster.setFromCamera( { x: 0, y: 0 }, camera );
var intersects = raycaster.intersectObjects( scene.children );
var intersects = raycaster.intersectObjects( cubes );
if ( intersects.length > 0 ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册