Velocity-correlation functions in two and three dimensions. II. Higher density