Hey everyone! I am refining my projects billboarding. Basically each of these labels currently rotate on their X and Z based on where the camera is - but now I am trying to make them lay flat basically if I look directly down on them. I believe I need to do something with the Y value but unsure if I am missing some kind of trig math, as setting it directly to the Y makes the labels vanish. I am working with 8thwall/vue/aframe/threejs Here is how I am currently handling it from the tick function:
for (var i = 0; i < this.objs.length; i++) {
var pos = document.getElementById('camera').getAttribute('position');
this.objs[i].lookAt(new THREE.Vector3(pos.x,0,pos.z));
}
Here is a video of the current behavior: Screen_Recording_20211217-172131_Chrome.mp4 - Google Drive
Thanks guys!