I have a rectangle laying horizontally across the screen. It rotates at the centre. There is a surrounding rectangle which I want to glow brighter as the main rectangle comes into line with it.
For some reason I can’t figure out the (what I’m fairly sure is basic) maths to get this working.
The challenge is that the .rotation of the rotating rectangle should not matter - the practical angle between it and the surrounding rectangle is what matters. Think of it like a gyroscope which gets brighter the closer to being inline they are.