For example, perspective illusions can be used to trick drivers into slowing down: https://www.insider.com/optical-illusions-3d-crosswalk-drivi... or crashing: https://imgur.com/a/kYr94
But I rarely see any of the crazier optical illusion effects used. Maybe these don't affect the population in a consistent enough way to use as a feature? (based on how white/gold and black/blue split the internet)