Does an animation step by moving the ball.
()
| 53 | * |
| 54 | */ |
| 55 | @Override |
| 56 | protected void doStep() { |
| 57 | time += 0.1; |
| 58 | double z = ball.getZ()+vz*dt-4.9*dt*dt; |
| 59 | vz -= 9.8*dt; |
| 60 | if((vz<0)&&(z<1)) { |
| 61 | vz = -vz; |
| 62 | } |
| 63 | ball.setZ(z); |
| 64 | frame.setMessage("time = "+ControlUtils.f2(time)); |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * |
nothing calls this directly
no test coverage detected