Unfortunately, my knowledge of positioning and rotating entities in 3D space is limited. Therefore, I am interested in developing a function that simplifies the process by using more intuitive parameters like:
createEntity(vertical, horizontal, distance)
to achieve something similar to
<a-entity position="-2 0 -2" rotation="-10 30 0"></a-entity>
where vertical and horizontal are floats between 0 and 360, and distance is a float representing how far the entity should be placed, with higher values indicating greater distance.
The rotation should initially face the camera.
Are there any helper functions available for these calculations?