Skip to content

A minimal Newtonian gravity and collision simulator in Clojure

Notifications You must be signed in to change notification settings

balysv/space-clojure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space

A minimal Newtonian gravity and collision simulator in Clojure

Demo

Demo rendered with the help of Quil

Gravitational constant adjustments

Gravity

Permutations applied to every entity in space. Currently supported:

  • apply-movement - adjust position according to velocity vector
  • apply-gravity - applies gravitational forces from each entity to another
  • apply-inelastic-collisions - collision strategy to merge entities into one preserving their properties and momentum
  • apply-elastic-collisions - collision strategy to bounce entities that touch with equivalent force

Permutations

Running

The project uses Leiningen

lein run or lein repl

and

lein test

License

Eclipse Public Licence 1.0 or any later version.

Releases

No releases published

Packages

No packages published