Check if a component rotation is in front of another component?

Vector mathematics, Check out info about dot product, and cross product with that functions u can make orientation check.