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
feat(raycaster): Raycaster doesn't trigger objects when recursive is set to false (refs: v0.4.0) #2329
Comments
Understand the confusion, but this is how THREE.Raycaster works. Parent Your workaround is a good one, though, and perhaps a community component ( |
Ok, looking at this a bit more, here's a simpler Codepen demo. With no nesting whatsoever, and So, there is something to be fixed here. Either:
|
(is the wrapping that is done always only one level deep?) |
For stock geometries, yes. If there's a |
* change raycaster to be non-recursive since there appears to be a wrapper around an entity's object3D, use its children instead * add simple example of non-recursive raycaster and dynamically created box add geometry so that raycaster actually adds something wait until next tick to satisfy Firefox; remove extra tick * changes per discussion on PR * changes per discussion on PR
Description:
Raycaster doesn't trigger objects when recursive is set to false
Environment:
### Editor :
https://ide.c9.io/maissani/testvr
### Application:
https://testvr-maissani.c9users.io
### Files:
https://preview.c9users.io/maissani/testvr
ps: I introduced a console.log line 59310 in aframe-v4.js to reveal intersection value behavior
Expected Behavior and Issue
Raycaster with recursive true currently working properly.
Raycaster with recursive false is not working properly: it doesn't trigger on Objects.
It seems that
Doesn't return any intersection when set to false
This bug is probably related to Three.js or not
A simple workAround tho fix this is to set to true whatever ( and then rollback when it's fixed on three.js), and add a conditional check to get only the parrent object (only if he is the origin of intersection )
The text was updated successfully, but these errors were encountered: