comparison 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
comparison
equal deleted inserted replaced
450:432f2c4646cb 451:0a4362d1f138
146 BulletAppState)) 146 BulletAppState))
147 (asset-manager))) 147 (asset-manager)))
148 148
149 (defn speed-up 149 (defn speed-up
150 "Increase the dismally slow speed of the world's camera." 150 "Increase the dismally slow speed of the world's camera."
151 [world] 151 ([world] (speed-up world 1))
152 (.setMoveSpeed (.getFlyByCamera world) 152 ([world amount]
153 (float 60)) 153 (.setMoveSpeed (.getFlyByCamera world)
154 (.setRotationSpeed (.getFlyByCamera world) 154 (float (* amount 60)))
155 (float 3)) 155 (.setRotationSpeed (.getFlyByCamera world)
156 world) 156 (float (* amount 3)))
157 157 world))
158 158
159 (defn no-logging 159 (defn no-logging
160 "Disable all of jMonkeyEngine's logging." 160 "Disable all of jMonkeyEngine's logging."
161 [] 161 []
162 (.setLevel (Logger/getLogger "com.jme3") Level/OFF)) 162 (.setLevel (Logger/getLogger "com.jme3") Level/OFF))