I figured it out, there is a node called ‘get actor forward vector’ which solves the x and y for you.