This is worse imo. I know, it will barely happen, but this will probably at one point lead to overlapping with a nearby object because of floatingpoint-inaccuracy. Could you use the Movement class to move the object savely to its new position?