quil

jcd 2025-04-09T12:11:50.804819Z

What physics library (if any) do people use with quil? (I ask because I am working through Nature of Code in Clojure, and have gotten to the Physics Library chapter; after doing some quick searching I haven't found any obvious answer about which is the best one to use or the most popular.)

p-himik 2025-04-09T12:13:49.569729Z

I would expect box2d to be the most popular choice.

👍 1
jcd 2025-04-09T12:20:49.211869Z

Thanks, lemme check that out.

2025-04-09T13:13:03.120579Z

If you want a minimal Clojure implementation, you can find one in https://github.com/thi-ng/geom

👀 1
2025-04-09T13:13:46.917889Z

Otherwise, wrapping one of a Java library (like box2d, as @p-himik said) is a fine choice

jcd 2025-04-09T13:24:05.316689Z

Nice, thanks. I'll play around with geom and see if it does what I need.

jcd 2025-04-09T13:37:39.357959Z

Awesome, thanks!

RollACaster 2025-04-09T13:38:36.625679Z

Also got one using https://github.com/rollacaster/sketches/blob/master/src/sketches/nature_of_code/physics_library/box_shapes.cljs running here https://rollacaster.github.io/sketches/ It's a really great book, enjoy!

🙏 1
plexus 2025-06-02T07:11:38.868339Z

hey hey, a bit late catching up here, just wanted to mention that https://github.com/lambdaisland/cljbox2d/ exists, including some helpers and example code for using it with quil.

Casey 2025-04-15T07:34:10.641949Z

> I ask because I am working through Nature of Code in Clojure Such a great book!

Casey 2025-04-15T07:34:58.117129Z

I have a little notebook of my working through here: https://ramblurr.github.io/nature-of-code/ I need to get back to that..oh the time

2025-04-15T08:24:45.016899Z

Love to see you using Clerk for this 😊

🙌 1
Casey 2025-04-15T08:32:20.790379Z

It's a great fit 🙂