Restitution e = 1 (perfectly elastic, no loss). Impulse includes torque through the contact lever arm when rotation is enabled. Tangential motion is untouched → no friction.
Linear momentum and total KE (translational + rotational) stay constant. On a free torus there is no external torque about the COM, so total angular momentum is also conserved.
Wrap is handled with a wrap-aware relative coordinate, so collisions stay correct when the square crosses the 1024 seam.