Distance function reduces motion sensitivity