Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | neoxid501 |
So I’m trying to have an object in 3D space always face the camera. I’ve actually gotten it to work, but the object’s position and scaling are completely lost when I use looking_at
Here is the code I’m using:
transform = transform.looking_at(cam.translation, Vector3(0 ,1, 0))
And the outcome when called:
before: 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1 - 0, 1.43091, 1.76425
after: 0.279935, -0.200516, 0.938845, 0, 0.977944, 0.208866, -0.960019, -0.058469, 0.273761 - 0, 1.43091, 1.76425
When I spawn multiple instances of the object they all immediately move to the same space so I’m guessing that I’m using the method incorrectly. Any help would be appreciated, thanks!