I was wondering in an area of space where there arent enough planets around it to suck an object in with gravity, does the object just float there? And if it does just float there will other objects eventually gravitate to it or pick it up eventually? This is a question I've asked a few of my physics and science teachers a few times, but none of them have really answered it very clearly in my opinion. Tell me if my question is unclear.
If an object is not close enough to a planet to orbit a planet, it will orbit the Sun.
If an object is not close enough to the Sun (or another star) to orbit it, it will orbit the centre of the Galaxy.
If an object is somewhere in intergalactic space, it will take a very long time before it goes anywhere.