Adding collision direction
Adding collision direction