Skip to content

fccm/ocaml-chipmunk

Repository files navigation

  This archive contains OCaml bindings for the
  Chipmunk 2D physics library:
    https://chipmunk-physics.net/

  Download Chipmunk 2D sources there:
    https://chipmunk-physics.net/release/

  This version of the bindings was tested with Chipmunk
  version 6.1.5 and OCaml version 4.14.0.

  Arlen Cuss contributed to the update from version 5.2.0
  to 5.3.4.

  run 'make' to compile the binding, and 'make test'
  to launch the "moon buggy" demo.

  The demo riquire the OpenGL binding called glMLite,
  which can be found at:
    https://decapode314.free.fr/ocaml/GL/

  run 'make doc' to generate the interface ocamldoc
  documentation. Two interfaces are provided, a high
  level object oriented one, and a low level one.

  The commented demo 'moon_buggy.ml' uses the high
  level interface, and the demo 'demo_dist.ml' uses
  the low level one.

  You can choose between two available installations.
  'make install' will apply a manual installation, and
  'make install_findlib' for the findlib users.
  Findlib users can compile stuff with:
    ocamlfind ocamlc -linkpkg -package chipmunk foo.ml
  and for those who prefer the traditional way, just:
    ocamlc -I +chipmunk chipmunk.cma foo.ml

  This binding is released under the terms of the
  Expat/X11 license. You can find the conditions of
  this license in the file:  LICENSE_MIT.txt

  Comments and feedbacks are wellcome, write to
    <monnier.florent(_)gmail.com>