Mercurial > cortex
diff 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 |
line wrap: on
line diff
1.1 --- a/org/proprioception.org Sat Jul 21 10:03:02 2012 -0500 1.2 +++ b/org/proprioception.org Sat Jul 21 11:18:47 2012 -0500 1.3 @@ -272,11 +272,13 @@ 1.4 [root 1.5 standard-debug-controls 1.6 (fn [world] 1.7 + (let [timer (RatchetTimer. 60)] 1.8 + (.setTimer world timer) 1.9 + (display-dilated-time world timer)) 1.10 (if record? 1.11 (Capture/captureVideo 1.12 world 1.13 (File. "/home/r/proj/cortex/render/proprio/main-view"))) 1.14 - (.setTimer world (com.aurellem.capture.RatchetTimer. 60)) 1.15 (set-gravity world (Vector3f. 0 0 0)) 1.16 (enable-debug world) 1.17 (light-up-everything world)) 1.18 @@ -363,7 +365,7 @@ 1.19 #+name: test-proprioception-header 1.20 #+begin_src clojure 1.21 (ns cortex.test.proprioception 1.22 - (:import (com.aurellem.capture Capture RatchetTimer)) 1.23 + (:import (com.aurellem.capture Capture RatchetTimer IsoTimer)) 1.24 (:use (cortex util world proprioception body)) 1.25 (:import java.io.File) 1.26 (:import com.jme3.bullet.control.RigidBodyControl) 1.27 @@ -371,6 +373,9 @@ 1.28 (:import (com.jme3.math Vector3f Quaternion ColorRGBA))) 1.29 #+end_src 1.30 1.31 +#+results: test-proprioception-header 1.32 +: com.jme3.math.ColorRGBA 1.33 + 1.34 * Source Listing 1.35 - [[../src/cortex/proprioception.clj][cortex.proprioception]] 1.36 - [[../src/cortex/test/touch.clj][cortex.test.proprioception]]