We analyze billiard motion with non-specular reflections in regular polygonal domains. Trajectories can be stable or chaotic depending on the departure angle and container geometry. Stable orbits are robust to small random fluctuations. A passive sorting device is proposed to separate microorganisms with different departure angles. Different departure angles result in trapping or diffusive trajectories in an environment of square obstacles.