change getDist to float
added wall following in mechanics, not tests (change func name)