Mercurial > cortex
comparison org/body.org @ 317:bb3f8a4af87f
removed references to defvar from clojure.contrib.def since the def from 1.4 now allows for docstrings
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 28 Feb 2012 14:04:21 -0600 |
parents | 83dd76d9628e |
children | 702b5c78c2de |
comparison
equal
deleted
inserted
replaced
316:2c7fbcbd5ebb | 317:bb3f8a4af87f |
---|---|
231 The higher order function =sense-nodes= from =cortex.sense= simplifies | 231 The higher order function =sense-nodes= from =cortex.sense= simplifies |
232 the first task. | 232 the first task. |
233 | 233 |
234 #+name: joints-2 | 234 #+name: joints-2 |
235 #+begin_src clojure | 235 #+begin_src clojure |
236 (defvar | 236 (def |
237 ^{:arglists '([creature])} | 237 ^{:doc "Return the children of the creature's \"joints\" node." |
238 :arglists '([creature])} | |
238 joints | 239 joints |
239 (sense-nodes "joints") | 240 (sense-nodes "joints")) |
240 "Return the children of the creature's \"joints\" node.") | |
241 #+end_src | 241 #+end_src |
242 | 242 |
243 ** Joint Targets and Orientation | 243 ** Joint Targets and Orientation |
244 | 244 |
245 This technique for finding a joint's targets is very similar to | 245 This technique for finding a joint's targets is very similar to |
548 "Assemble a physical creature using the definitions found in a | 548 "Assemble a physical creature using the definitions found in a |
549 specially prepared blender file. Creates rigid bodies and joints so | 549 specially prepared blender file. Creates rigid bodies and joints so |
550 that a creature can have a physical presence in the simulation." | 550 that a creature can have a physical presence in the simulation." |
551 {:author "Robert McIntyre"} | 551 {:author "Robert McIntyre"} |
552 (:use (cortex world util sense)) | 552 (:use (cortex world util sense)) |
553 (:use clojure.contrib.def) | |
554 (:import | 553 (:import |
555 (com.jme3.math Vector3f Quaternion Vector2f Matrix3f) | 554 (com.jme3.math Vector3f Quaternion Vector2f Matrix3f) |
556 (com.jme3.bullet.joints | 555 (com.jme3.bullet.joints |
557 SixDofJoint Point2PointJoint HingeJoint ConeJoint) | 556 SixDofJoint Point2PointJoint HingeJoint ConeJoint) |
558 com.jme3.bullet.control.RigidBodyControl | 557 com.jme3.bullet.control.RigidBodyControl |