-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Configuring the cursor's raycaster does not work (component ordering/dep bug) #1841
Comments
Though it should have been possible to update the raycaster independently, an A-Frame bug makes it necessary to go through the vive-cursor component. aframevr/aframe#1841
This may be caused by confusion between the raycaster created by the cursor (as a dependency) and the raycaster added in markup. I had the same problem with the vive-cursor component and "solved" it by having the raycaster's 'objects' property be set by vive-cursor during initialization. |
I got it working in #1845 I wonder if it's a component initialization order issue. |
Putting the raycaster component before the cursor component works as it should. The code sample on the cursor's doc page could be amended, but ideally the order wouldn't matter. |
fixed |
Description: The documentation says we can "customize the raycasting pieces of the cursor...by changing the raycaster component properties". But attempting to restrict the cursor to a certain class using the raycaster's 'objects' property does not work (all entities remain active).
CodePen: https://codepen.io/bryik/pen/VjRgyk
The text was updated successfully, but these errors were encountered: