add collsion direction detection