functions to move objects connected with the haptic and move the haptic in case of collisions