Hydrodynamics of particles in complex and inhomogeneous environments