comparison org/util.org @ 73:257a86328adb

saving progress
author Robert McIntyre <rlm@mit.edu>
date Wed, 28 Dec 2011 00:00:23 -0700
parents 0235c32152af
children fb810a2c50c2
comparison
equal deleted inserted replaced
72:6f1c86126d51 73:257a86328adb
186 186
187 #+end_src 187 #+end_src
188 188
189 #+results: util 189 #+results: util
190 : #'cortex.util/apply-map 190 : #'cortex.util/apply-map
191 191
192 192
193 *** Creating Basic Shapes 193 *** Creating Basic Shapes
194 194
195 #+name: shapes 195 #+name: shapes
196 #+begin_src clojure :results silent 196 #+begin_src clojure :results silent
248 ;; Create an accurate mesh collision shape if desired. 248 ;; Create an accurate mesh collision shape if desired.
249 (RigidBodyControl. 249 (RigidBodyControl.
250 (doto (GImpactCollisionShape. 250 (doto (GImpactCollisionShape.
251 (.getMesh geom)) 251 (.getMesh geom))
252 (.createJmeMesh) 252 (.createJmeMesh)
253 (.setMargin 0)) 253 ;;(.setMargin 0)
254 )
254 (float (:mass d))) 255 (float (:mass d)))
255 ;; otherwise use jme3's default 256 ;; otherwise use jme3's default
256 (RigidBodyControl. (float (:mass d))))] 257 (RigidBodyControl. (float (:mass d))))]
257 (.addControl geom physics-control) 258 (.addControl geom physics-control)
258 ;;(.setSleepingThresholds physics-control (float 0) (float 0)) 259 ;;(.setSleepingThresholds physics-control (float 0) (float 0))