How do I set the rotation of an object to always be 90 degrees in relation to another object?

I assume that the ball is the target no?
would this not work as well?