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.
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.