                              :max-val barrel-height))
 
       [:axis/direction :x-axis]
-      (assoc-in
-        this [:cursor-position :theta]
+      (assoc-in this [:cursor-position :theta]
         (let [theta' (control/adjust-wrapped
                        (:theta cursor-position) event
                        :rate sphere/pi

    (Math/sqrt (+ (Math/pow vertical-distance 2) (Math/pow circle-distance 2)))))


(defrecord BombsMode
  [barrel-radius barrel-height cursor-position]

  mode/Mode

  (update
    [this event]
    (condp = [(:type event) (:input event)]
      [:button/press :L]
      this

      [:axis/direction :y-axis]
      (assoc-in this [:cursor-position :z]

  ([]
   (init 0.099 (* 0.068 8) {:theta 0 :z 0.20}))
  ([barrel-radius barrel-height cursor-position]
   (BombsMode. barrel-radius barrel-height cursor-position [])))
