Laser tracking accuracy issue at smaller scales
levexis opened this issue · 2 comments
When the keyboard is positioned close to the camera and scaled down below 30% it starts to have problems with laser controls where the key to the left of the one the laser is pointing at becomes highlighted. This is with a right handed raycaster. The keyboard still behaves normally with the mouse cursor. I am going to take a look at why this is happening but any suggestions appreciated. For an example see https://dented-pen15.glitch.me and the photo below....
I think the problem is a bug with the raycaster component as it is giving (for me) a position around 6cm to the left of where the line intersects the keyboard. I've added handOffsetX/Y for people to offset this bias as it varies by scaling and at larger scales / greater distance seems to go away completely. I've also fixed an unrelated bug with the shift key and will add that to a pull request,
I was checking out your pull request and considering adding it to my fork here, but wanted to better understand it. Unfortunately, your glitch fails to work for me.
If you get it working and explain the issue and fix, I'll be glad to update it there.
Thanks!