smuggledPancakes
smuggledPancakes

Reputation: 10323

Error: ray.intersectScene is not a function

I have been using the sim.js code and its objects for a simple WebGL project. When I needed to use the frustum class (see this question) I had to update my three.js. One thing broke:

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

I checked out the source code on git, and that function does not exist in ray.js. How can I update this code?

Upvotes: 4

Views: 1185

Answers (1)

WestLangley
WestLangley

Reputation: 104803

See the three.js Wiki on Migrating: https://github.com/mrdoob/three.js/wiki/Migration

Removed intersectScene from Ray. Use Raycaster.intersectObjects( array ) instead.

three.js r.61

Upvotes: 4

Related Questions