Javascript 错误:ray.intersect场景不是函数

Javascript 错误:ray.intersect场景不是函数,javascript,three.js,webgl,Javascript,Three.js,Webgl,我一直在为一个简单的WebGL项目使用sim.js代码及其对象。当我需要使用trustum类(请参阅)时,我必须更新我的three.js。有一样东西坏了: TypeError: ray.intersectScene is not a function sim.js(line 357) var intersects = ray.intersectScene( this.scene ); 我在git上签出了源代码,而该函数在ray.js中不存在。如何更

我一直在为一个简单的WebGL项目使用
sim.js
代码及其对象。当我需要使用
trustum
类(请参阅)时,我必须更新我的
three.js
。有一样东西坏了:

TypeError: ray.intersectScene is not a function                   sim.js(line 357)
     var intersects = ray.intersectScene( this.scene );

我在git上签出了源代码,而该函数在
ray.js
中不存在。如何更新此代码?

请参阅关于迁移的three.js Wiki:

已从
光线中删除场景。改用
Raycaster.intersectObjects(数组)


three.js r.61

谢谢@West。曾尝试使用ray.scene。现在编辑后可以使用