comparison org/proprioception.org @ 340:4f5a5d5f1613

added time dialation display for test suite.
author Robert McIntyre <rlm@mit.edu>
date Sat, 21 Jul 2012 11:18:47 -0500
parents 702b5c78c2de
children 5205535237fb
comparison
equal deleted inserted replaced
339:0efa36180e8a 340:4f5a5d5f1613
270 ["key-r" "key-t" "key-f" "key-g" "key-v" "key-b"] 270 ["key-r" "key-t" "key-f" "key-g" "key-v" "key-b"]
271 [1 1 10 10 10 10] 271 [1 1 10 10 10 10]
272 [root 272 [root
273 standard-debug-controls 273 standard-debug-controls
274 (fn [world] 274 (fn [world]
275 (let [timer (RatchetTimer. 60)]
276 (.setTimer world timer)
277 (display-dilated-time world timer))
275 (if record? 278 (if record?
276 (Capture/captureVideo 279 (Capture/captureVideo
277 world 280 world
278 (File. "/home/r/proj/cortex/render/proprio/main-view"))) 281 (File. "/home/r/proj/cortex/render/proprio/main-view")))
279 (.setTimer world (com.aurellem.capture.RatchetTimer. 60))
280 (set-gravity world (Vector3f. 0 0 0)) 282 (set-gravity world (Vector3f. 0 0 0))
281 (enable-debug world) 283 (enable-debug world)
282 (light-up-everything world)) 284 (light-up-everything world))
283 (fn [_ _] 285 (fn [_ _]
284 (prop-view 286 (prop-view
361 #+end_src 363 #+end_src
362 364
363 #+name: test-proprioception-header 365 #+name: test-proprioception-header
364 #+begin_src clojure 366 #+begin_src clojure
365 (ns cortex.test.proprioception 367 (ns cortex.test.proprioception
366 (:import (com.aurellem.capture Capture RatchetTimer)) 368 (:import (com.aurellem.capture Capture RatchetTimer IsoTimer))
367 (:use (cortex util world proprioception body)) 369 (:use (cortex util world proprioception body))
368 (:import java.io.File) 370 (:import java.io.File)
369 (:import com.jme3.bullet.control.RigidBodyControl) 371 (:import com.jme3.bullet.control.RigidBodyControl)
370 (:import com.jme3.bullet.collision.PhysicsCollisionObject) 372 (:import com.jme3.bullet.collision.PhysicsCollisionObject)
371 (:import (com.jme3.math Vector3f Quaternion ColorRGBA))) 373 (:import (com.jme3.math Vector3f Quaternion ColorRGBA)))
372 #+end_src 374 #+end_src
375
376 #+results: test-proprioception-header
377 : com.jme3.math.ColorRGBA
373 378
374 * Source Listing 379 * Source Listing
375 - [[../src/cortex/proprioception.clj][cortex.proprioception]] 380 - [[../src/cortex/proprioception.clj][cortex.proprioception]]
376 - [[../src/cortex/test/touch.clj][cortex.test.proprioception]] 381 - [[../src/cortex/test/touch.clj][cortex.test.proprioception]]
377 - [[../src/cortex/video/magick6.clj][cortex.video.magick6]] 382 - [[../src/cortex/video/magick6.clj][cortex.video.magick6]]