Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sim.js #3

Open
paveldk opened this issue Dec 6, 2012 · 1 comment
Open

Update sim.js #3

paveldk opened this issue Dec 6, 2012 · 1 comment

Comments

@paveldk
Copy link

paveldk commented Dec 6, 2012

There were some updates on three.js and SIM.js is not working properly. The main problem is comming form the intersectScene which is now replaced with intersectObjects and some slight modifications are required

@danbri
Copy link

danbri commented Feb 2, 2014

More on that here - http://stackoverflow.com/questions/15211171/typeerror-objectobject-object-has-no-method-subself-typeerror-objectobject-o

... answer doesn't seem to be obvious, something like

// var intersects = ray.intersectScene( this.scene ); // old
var raycaster = new THREE.Raycaster(camera.position, vector.sub(camera.position).normalize());
var intersects = raycaster.intersectObjects( this.scene );

seems to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants