Skip to content

Commit

Permalink
fixup a couple more redundant calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Nov 29, 2024
1 parent b945413 commit 38c6e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shimmers/sketches/waystation.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
(let [acc (if target
(let [control 0.1
delta (- target pos)
acc (- (* control delta) (* (* 2 (math/sqrt control)) vel))]
acc (- (* control delta) (* 2 (math/sqrt control) vel))]
(tm/clamp acc (- max-accel) (/ max-accel cars)))
0)]
(-> train
Expand Down
2 changes: 1 addition & 1 deletion src/shimmers/sketches/woven.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
(defn update-pos [rate t dt {:keys [dir] :as inst}]
(-> inst
(update :pos tm/+ (tm/* dir (* 0.075 dt)))
(update :rot + (* (* 0.005 (math/sin (* rate t))) dt))))
(update :rot + (* 0.005 (math/sin (* rate t)) dt))))

(defn update-state [{:keys [mono triangles rate screen pass t] :as state}]
(let [dt (- (q/millis) t)]
Expand Down

0 comments on commit 38c6e85

Please sign in to comment.