this is a simple project that calculates the angle with math
I found the math here https://scratch.mit.edu/discuss/topic/9756/