Magnetic objects

Hi everyone
Does anyone know how, or knows of a tutorial to create an object that hovers about in its place, minding its own business until the mouse comes close then when it gets a certain distance from the object it begins to follow it?

Is that what you wanted?

Thats the baby…nice one thanks a lot…!!

No problem:)
hope u can make it work for you