raycasting collision for fall detection