Mercurial > cortex
diff org/util.org @ 304:2dfebf71053c
Merged Winston cover letter
author | Dylan Holmes <ocsenave@gmail.com> |
---|---|
date | Sat, 18 Feb 2012 02:07:40 -0600 |
parents | d1206b11ae2d |
children | 7e7f8d6d9ec5 |
line wrap: on
line diff
1.1 --- a/org/util.org Sat Feb 18 02:06:06 2012 -0600 1.2 +++ b/org/util.org Sat Feb 18 02:07:40 2012 -0600 1.3 @@ -113,13 +113,10 @@ 1.4 1.5 (defn position-camera 1.6 "Change the position of the in-world camera." 1.7 - ([world position direction up] 1.8 + [world #^Vector3f position #^Quaternion rotation] 1.9 (doto (.getCamera world) 1.10 - (.setLocation ) 1.11 - (.lookAt direction up))) 1.12 - ([world position direction] 1.13 - (position-camera 1.14 - world position direction Vector3f/UNIT_Y))) 1.15 + (.setLocation position) 1.16 + (.setRotation rotation))) 1.17 1.18 (defn enable-debug 1.19 "Turn on debug wireframes for every object in this simulation." 1.20 @@ -219,7 +216,7 @@ 1.21 #+end_src 1.22 1.23 #+results: util 1.24 -: #'cortex.util/apply-map 1.25 +: #'cortex.util/runonce 1.26 1.27 1.28 *** Creating Basic Shapes