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

Change rayOrigin dynamically bug #2929

Closed
stephanedemotte opened this issue Aug 3, 2017 · 4 comments
Closed

Change rayOrigin dynamically bug #2929

stephanedemotte opened this issue Aug 3, 2017 · 4 comments

Comments

@stephanedemotte
Copy link

stephanedemotte commented Aug 3, 2017

Description:

  • A-Frame Version: 0.6.1
  • Platform / Device: Desktop / Mac / Chrome
  • Reproducible Code Snippet or URL: repro

Hi !

We can change rayOrigin from entity to mouse but when we try to change from mouse to entity nothing append.

Step to repro in the jsfiddle.
1 - try to gaze objects... the status change ! yes !
2 - click on the blue button (to switch to mouse mode)
3 - try to click with mouse, the status change again ! yes !
4 - toggle one more time to switch in entity mode
5 - gaze not working.

Thanks !

@stephanedemotte stephanedemotte changed the title Change rayOrigin dynamically Change rayOrigin dynamically bug Aug 3, 2017
@stephanedemotte
Copy link
Author

no news ?
it's not a bug ?

@azmartone
Copy link

Happens for me too
A-Frame Version: 0.7.1
Platform / Device: Desktop / Mac / Chrome

@azmartone
Copy link

Work around: I ended up destroying and re-creating a new cursor entity whenever, the rayOrigin changes.

@ngokevin
Copy link
Member

ngokevin commented Feb 5, 2019

Doesn't quite make sense to have the same entity do both since one is head-fixed and one is global on the scene.

You can have two cursor entities and enable/disable them as needed with raycaster.enabled.

@ngokevin ngokevin closed this as completed Feb 5, 2019
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

3 participants