comparison org/sense-util.org @ 164:c33a8e5fe7bc

removed hearing-init-fns requirement, changed names
author Robert McIntyre <rlm@mit.edu>
date Sat, 04 Feb 2012 03:29:59 -0700
parents e8df6e76c3e5
children 9e6a30b8c99a
comparison
equal deleted inserted replaced
163:985c73659923 164:c33a8e5fe7bc
172 "Convert the local coordinates into coordinates into world relative 172 "Convert the local coordinates into coordinates into world relative
173 coordinates" 173 coordinates"
174 [#^Spatial object local-coordinate] 174 [#^Spatial object local-coordinate]
175 (.localToWorld object local-coordinate nil)) 175 (.localToWorld object local-coordinate nil))
176 176
177
178 (defn sense-nodes [parent-name]
179 (fn [#^Node creature]
180 (if-let [sense-node (.getChild creature parent-name)]
181 (seq (.getChildren sense-node))
182 (do (println-repl "could not find" parent-name "node") []))))
183
184
177 #+end_src 185 #+end_src
178 186
179 #+results: sense-util 187 #+results: sense-util
180 : #'cortex.sense/meta-data 188 : #'cortex.sense/meta-data
181 189