comparison org/skin.org @ 29:6372c108c5c6

cleaned up util.org
author Robert McIntyre <rlm@mit.edu>
date Mon, 24 Oct 2011 12:35:15 -0700
parents 67d508a1e34d
children 97703c7f020e
comparison
equal deleted inserted replaced
28:122f12f81dc1 29:6372c108c5c6
145 (.collideWith node ray results) 145 (.collideWith node ray results)
146 (let [touch-objects (set (filter #(not (= geom %)) 146 (let [touch-objects (set (filter #(not (= geom %))
147 (map #(.getGeometry %) results)))] 147 (map #(.getGeometry %) results)))]
148 ;;(dorun (map #(println-repl (.getName %)) touch-objects)) 148 ;;(dorun (map #(println-repl (.getName %)) touch-objects))
149 (count touch-objects)))))))) 149 (count touch-objects))))))))
150
151 (defn enable-debug [world]
152 (.enableDebug
153 (.getPhysicsSpace
154 (.getState
155 (.getStateManager world)
156 BulletAppState))
157 (asset-manager)))
158 150
159 (defn no-logging [] 151 (defn no-logging []
160 (.setLevel (Logger/getLogger "com.jme3") Level/OFF)) 152 (.setLevel (Logger/getLogger "com.jme3") Level/OFF))
161 153
162 (defn set-accuracy [world new-accuracy] 154 (defn set-accuracy [world new-accuracy]