aframe-extras
aframe-extras copied to clipboard
[movement-controls]: Lost Orientation on Fly Toggle
Apologies if this has been brought up before. I've come to find an issue while toggling fly true/false programmatically while in-scene. If a user is in fly mode fly: true, and they rotate their camera (or "head"), and toggle fly mode off fly: false, the controls become disoriented. By "disoriented", I mean that the W key will travel the user up (or sometimes down) on the Y-axis and same with the S key. This also seems to be the case on mobile as well.
Steps to reproduce:
- I setup an example scene here: sample scene on glitch, fire that up.
- Toggle
fly: trueusing the checkbox control in the upper left. - Fly around and angle your camera/head downward.
- Now, toggle
fly: falseby unchecking the previous control. - Attempt moving around using keyboard controls, at this point it should be "disoriented".
Current versions, browsers, and devices:
- aframe version: 0.9.2
- aframe-extras version: 6.0.1
- Desktop Browsers tested:
- Chrome v78.0.3904.97
- Firefox v70.0.1
- Safari v13.0.2
- Mobile (iPhone Xr) Browsers tested:
- Chrome v78.0.3904.84
- Safari v13.2.2
Any help or insight into this issue would be much appreciated, thank you in advance.
should be checked whether this still applies in 6.1.1 and 1.1.0
the glitch link is dead, @jon-lehman
The PR to fix this issue was merged.