moving all the logic into a component, simplifying the math (taken from: networked-aframe spawn-in-circle.component.js)