@Helvetosaur in the script I am orienting a light fixture that can have any shape. Imagine this light fixture that you want to focus on a point:
This means the light fixture needs to be rotated in two axes, which is what I am doing in the script. But the point is that the calculated angle between 2 vectors can be positive or negative and not necessarily correspond to the direction it needs to be rotated in.
@Graham, I’ll look into it, thanks. Edit: I actually have no idea how I could use atan2 to solve this
