mrdoob/three.js — Issue #740: Raycast onClick w/ model
Author: lburge
Created: 2011-11-10 14:03:21+00:00
State: open

Hello,

I'm currently trying to do a raycast with two models, both JSON loader & added mesh. However I cant define which model I'm clicking on. I can raycast with all the models, but not individuals.

I've been using rayCastNearest because thats the only one that detects models. ray.intersectObject intersects with everything on the document including blank space.
The code to load the models is a slightly modified version of the webgl collisions mesh example.
There is a live version here http://dakar.bournemouth.ac.uk/~aburgess/

Thank you