As far as I know, you are going to have to go into VB.
Also, if the quad and/or camera is in a hierarchy, you are going to have to calculate the positions, not just taking X,Y,Z positions.
UPDATE :
Just looked at the API documentation and there is a GetParent method. This means you could make a recursive function to figure out the positions. Makes life a bit easier.
------------------------------
Azathoth
Son of Cthulhu
------------------------------
Original Message:
Sent: 10-01-2024 09:24
From: John Corigliano
Subject: Always face the camera
Is there an option or API function to have an object face the camera when using a Perspective Camera? I have a bunch of quads that I want to always face the camera, no matter where it is. For example, the quads are moving around in a circle while at the same time the camera is moving randomly about in the scene. No matter where the camera is, I want the quads to rotate to face it, so you only ever see the front face of the quad. I can probably do the math using matrices to do this, but was wondering if there was something built in.
Thanks.
------------------------------
JohnCorigliano
Senior Software Engineer
ISC
------------------------------