Hey there,
I'm new to working within the 3D space and 3D calculations so forgive me if this question is very basic. I'm facing the following case;
I have a single entity in the scene that can be positioned anywhere, limited only by a certain radius- it can be positioned in front of the camera, behind it or to the left or right of it. Once it is positioned it has a transform's rotation property set to simd_quatf(real: 0.0, imag: SIMD3<Float>(0.0, 0.0, 0.0)).
I'd like to modify this rotation property so that it would face the camera when I'd look at it. So even if I'm facing the opposite direction of where my entity is placed, when I turn around, I'd like it to be facing the camera directly. What calculations do I need to apply in order to achieve this?