Added raycast for y coordinate.