Update physics.java