How do I get the local space coordinates of another object inside geonodes

This feels like the simplest thing, yet I cant seem to find any example on how to do this properly.
I need the local space coordinates of an empty inside of geonodes, mostly for when I want to controll things like a 3d mask that I can control easily with an object ,rather than manually typing values-

I know that in shader nodes, youd simply use a Texture coordinate node and take the output from the “Base” field, to get said coordinates that respect both rotation and scale.
However, I havent been able to get rotation to work inside of geonodes, at all. Any pointers?

As far as I understand, just use Vector Rotate with objects rotation (but inverted to rotate in the opposite direction):

image

1 Like

Omg, I was so closed when I was trying to simply negate the vector- didnt know the invert rotation node was a thing. thanks :weary: