package glideme;

/**
 * Responsible for updating the state of the world using laws of physics.
 */
public class Physics {
    /**
     * Determine and set updated values of crane's position and angle.
     *
     * @param world - the world that's being updated.
     */
    public static void update(World world) {
        //TODO: @psuchorab, it's your job ;).
    }
}

@@ -321,45 +321,359 @@
     
-//TODO: @psuchorab, it's your job ;).
+%0A        World.CraneState state = world.getCraneState();%0A%0A        double newPosition = state.position + state.velocity * world.TIME_QUANTUM;%0A%0A        double tangensAlpha = (state.velocity - state.prevVelocity) / world.TIME_QUANTUM / 9.81;%0A%0A        double newAngle = Math.tan(tangensAlpha);%0A%0A%0A        world.update(newPosition, null, newAngle);%0A        
 %0A   

Update Physics.java