Skip to content

Commit

Permalink
[physics] store particles and springs as vectors (was sets) in Verlet…
Browse files Browse the repository at this point in the history
…Physics
  • Loading branch information
postspectacular committed Oct 2, 2015
1 parent 1eeb036 commit 15cf3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geom-physics/src/core.org
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@
#+BEGIN_SRC clojure :noweb-ref ctors
(defn physics
[{:keys [particles springs behaviors constraints drag listeners]
:or {particles #{}, springs #{}, behaviors {}, constraints {}
:or {particles [], springs [], behaviors {}, constraints {}
listeners {}, drag 0.0}}]
(VerletPhysics.
(set particles) (set springs) behaviors constraints listeners drag))
(vec particles) (vec springs) behaviors constraints listeners drag))

(defn particle
[pos & [weight lock?]]
Expand Down

0 comments on commit 15cf3d1

Please sign in to comment.