jure / aframe-blink-controls

A teleport (blink with rotation) component for A-Frame
https://jure.github.io/aframe-blink-controls
MIT License
50 stars 17 forks source link

Simplify new rig position logic #5

Closed jure closed 3 years ago

jure commented 3 years ago

I don't know how that existing logic evolved, but I think I somehow missed an obvious thing: new position is hit position. I've tested all the examples with this new logic and they work (better) than the existing solution, but it's possible I missed something.

A good time to start thinking about automated tests, though these are a bit trickier in the context of Aframe.