# HG changeset patch # User Robert McIntyre # Date 1328363567 25200 # Node ID 026f6958202293fc8e673959c38ab26c2ba6665d # Parent 0b9ae09eaec3ddf0b1cac62a7b7ac65d13603a0c organized imports in cortex.body diff -r 0b9ae09eaec3 -r 026f69582022 org/body.org --- a/org/body.org Sat Feb 04 06:47:07 2012 -0700 +++ b/org/body.org Sat Feb 04 06:52:47 2012 -0700 @@ -9,19 +9,22 @@ #+name: joints #+begin_src clojure (ns cortex.body + "Assemble a physical creature using the definitions found in a + specially prepared blender file. Creates rigid bodies and joints so + that a creature can have a physical presense in the simulation." + {:author "Robert McIntyre"} (:use (cortex world util sense)) + (:use clojure.contrib.def) (:import - com.jme3.math.Vector3f - com.jme3.math.Quaternion - com.jme3.math.Vector2f - com.jme3.math.Matrix3f + (com.jme3.math Vector3f Quaternion Vector2f Matrix3f) + (com.jme3.bullet.joints + SixDofJoint Point2PointJoint HingeJoint ConeJoint) com.jme3.bullet.control.RigidBodyControl com.jme3.collision.CollisionResults com.jme3.bounding.BoundingBox - com.jme3.scene.Node)) - -(use 'clojure.contrib.def) -(cortex.import/mega-import-jme3) + com.jme3.scene.Node + com.jme3.scene.Geometry + com.jme3.bullet.collision.shapes.HullCollisionShape)) (defn joint-targets "Return the two closest two objects to the joint object, ordered @@ -220,10 +223,6 @@ [#^Node creature] (physical! creature) (joints! creature)) - - - - #+end_src #+results: joints