Can nodes use an objects x/y position? I have a blender file where a sphere is orbiting a force field. I want it to be more red when it's closer to the center, and more blue when it's further. I already have the math figured out, I just need to know how to get x/y coordinates in nodes.

Here's the file:
Use the object info node connected to a separate xyz node: