A 27-year-old Orangeburg man has been sentenced to 40 years in prison for killing a man who bumped into him on the dance floor of a Calhoun County nightclub.