run physics on client side as well as server side