switch the arguments of the environmentCollisionDistanceFunction