A particle engine