Update physics functions.