comparison org/body.org @ 54:7bc3b22c507b

translation behaves as expected, but the debug mesh does seems to be reversed from the actual bone layout
author Robert McIntyre <rlm@mit.edu>
date Tue, 15 Nov 2011 00:53:06 -0700
parents bb24106cbd6a
children 8b95180f5c69
comparison
equal deleted inserted replaced
53:bb24106cbd6a 54:7bc3b22c507b
184 184
185 (let [b (.getBone skeleton 6)] 185 (let [b (.getBone skeleton 6)]
186 (println-repl "moving " (.getName b)) 186 (println-repl "moving " (.getName b))
187 (println-repl (.getLocalPosition b)) 187 (println-repl (.getLocalPosition b))
188 (.setUserTransforms b 188 (.setUserTransforms b
189 (.add (.getLocalPosition b) Vector3f/UNIT_X) 189 Vector3f/UNIT_X
190 Quaternion/IDENTITY 190 Quaternion/IDENTITY
191 ;;(doto (Quaternion.)
192 ;; (.fromAngles (/ Math/PI 2)
193 ;; 0
194 ;; 0
195
191 (Vector3f. 1 1 1)) 196 (Vector3f. 1 1 1))
192 197
193 ) 198 )
194 199
195 200