Implement constaints for particle positions (through naive per-dimension repositioning).