diff org/util.org @ 451:0a4362d1f138

finishing up chapter 3.
author Robert McIntyre <rlm@mit.edu>
date Wed, 26 Mar 2014 20:38:17 -0400
parents 6ba908c1a0a9
children 763d13f77e03
line wrap: on
line diff
     1.1 --- a/org/util.org	Wed Mar 26 03:18:57 2014 -0400
     1.2 +++ b/org/util.org	Wed Mar 26 20:38:17 2014 -0400
     1.3 @@ -148,13 +148,13 @@
     1.4  
     1.5  (defn speed-up 
     1.6    "Increase the dismally slow speed of the world's camera."
     1.7 -  [world]
     1.8 -  (.setMoveSpeed (.getFlyByCamera world)
     1.9 -                 (float 60))
    1.10 -  (.setRotationSpeed (.getFlyByCamera world)
    1.11 -                     (float 3))
    1.12 -  world)
    1.13 -
    1.14 +  ([world] (speed-up world 1))
    1.15 +  ([world amount]
    1.16 +     (.setMoveSpeed (.getFlyByCamera world)
    1.17 +                    (float (* amount 60)))
    1.18 +     (.setRotationSpeed (.getFlyByCamera world)
    1.19 +                        (float (* amount 3)))
    1.20 +     world))
    1.21  
    1.22  (defn no-logging 
    1.23    "Disable all of jMonkeyEngine's logging."