Add functionality for other collision directions.