Implement particle contact resolution.