Simulation of moving particles with collision detection and spining