-
Calculating angle from camera to object – expression
I’ve been trying to figure out a way to calculate the angle between an 3D layer and a camera… specifically, a perpendicular line from the center of any given 3D object and a camera.
The first idea I had was parenting a Null to the “object”, having it auto-orient to the camera, then calculating the absolute rotation of the Null. But in 3D space, this seems to be a tall order.
Mainly this is to adapt Angle property controls based on camera/object angle.
Anyone have any great ideas?