c-frame / aframe-extras

Add-ons and helpers for A-Frame VR.
https://c-frame.github.io/aframe-extras/examples/
MIT License
972 stars 305 forks source link

fix for y velocity persisting after fly toggled off #378

Closed ciaran-deegan-davra closed 2 years ago

ciaran-deegan-davra commented 2 years ago

When fly mode is active and a user begins to travel, a velocity is (potentially) set on the y-axis. When fly mode is de-activated, the velocity calculation ignores the y-axis, causing the velocity to carry over from when the user was in fly mode.

To reproduce:

Expected Results:

Actual Results:

This change explicitly sets y-axis velocity to 0 when not flying, fixing the issue. Fixes #305.

vincentfretin commented 2 years ago

This PR is merged in the community fork https://github.com/c-frame/aframe-extras/issues/5

vincentfretin commented 2 years ago

The changes are now also in this repo.