moving physics logic to workers