diff org/util.org @ 153:c95179907951

saving progress
author Robert McIntyre <rlm@mit.edu>
date Fri, 03 Feb 2012 05:59:32 -0700
parents aaacf087504c
children 33278bf028e7
line wrap: on
line diff
     1.1 --- a/org/util.org	Fri Feb 03 05:52:36 2012 -0700
     1.2 +++ b/org/util.org	Fri Feb 03 05:59:32 2012 -0700
     1.3 @@ -203,7 +203,6 @@
     1.4    [f m] (zipmap (keys m) (map f (vals m))))
     1.5  
     1.6  
     1.7 -
     1.8  #+end_src
     1.9  
    1.10  #+results: util
    1.11 @@ -216,6 +215,18 @@
    1.12  #+begin_src clojure :results silent
    1.13  (in-ns 'cortex.util)
    1.14  
    1.15 +(defn load-bullet 
    1.16 +  "Runnig this function unpacks the native bullet libraries and makes
    1.17 +   them available."
    1.18 +  []
    1.19 +  (let [sim (world (Node.) {} no-op no-op)]
    1.20 +    (doto sim
    1.21 +      (.enqueue
    1.22 +       (fn []
    1.23 +         (.stop sim)))
    1.24 +      (.start))))
    1.25 +
    1.26 +
    1.27  (defrecord shape-description
    1.28    [name
    1.29     color