i need to know how can i get a camera cursor position and add entity on that position i check many solution as like how can i add entity on cursor position using aFrame here is my code example `
<a-text font="kelsonsans" value="Puy de Sancy, France" width="6" position="2 11 0"
rotation="0 15 0"></a-text>
<a-camera camera-logger id="camera"> <a-cursor fuse="true" color="yellow"></a-cursor> </a-camera>
</a-scene>`
here is my JS code
function getPos(){
var cameraEl = document.querySelector('#camera');
var WorldPosition = cameraEl.object3D.getWorldPosition();
var pos = cameraEl.getAttribute('position');
var rot = cameraEl.getAttribute('rotation');
console.log(WorldPosition);
console.log(pos);
console.log(rot);
}
but when i try to set entity position as per below out put it's not showing on that location because it's showing like position coordinates "x: -5.385803274229736, y: 69.90085100596048, z: 0"
but aframe position coordinates are difference Might be it's a ThreeJs Position please help me with the full solution