The Naked Time

A strange alien substance causes the crew to act out their deepest inhibitions, while the ship plummets out of orbit.