diff org/body.org @ 176:026f69582022

organized imports in cortex.body
author Robert McIntyre <rlm@mit.edu>
date Sat, 04 Feb 2012 06:52:47 -0700
parents 0b9ae09eaec3
children d5c597a7aed4
line wrap: on
line diff
     1.1 --- a/org/body.org	Sat Feb 04 06:47:07 2012 -0700
     1.2 +++ b/org/body.org	Sat Feb 04 06:52:47 2012 -0700
     1.3 @@ -9,19 +9,22 @@
     1.4  #+name: joints
     1.5  #+begin_src clojure 
     1.6  (ns cortex.body
     1.7 +  "Assemble a physical creature using the definitions found in a
     1.8 +   specially prepared blender file. Creates rigid bodies and joints so
     1.9 +   that a creature can have a physical presense in the simulation."
    1.10 +  {:author "Robert McIntyre"}
    1.11    (:use (cortex world util sense))
    1.12 +  (:use clojure.contrib.def)
    1.13    (:import
    1.14 -   com.jme3.math.Vector3f
    1.15 -   com.jme3.math.Quaternion
    1.16 -   com.jme3.math.Vector2f
    1.17 -   com.jme3.math.Matrix3f
    1.18 +   (com.jme3.math Vector3f Quaternion Vector2f Matrix3f)
    1.19 +   (com.jme3.bullet.joints
    1.20 +    SixDofJoint Point2PointJoint HingeJoint ConeJoint)
    1.21     com.jme3.bullet.control.RigidBodyControl
    1.22     com.jme3.collision.CollisionResults
    1.23     com.jme3.bounding.BoundingBox
    1.24 -   com.jme3.scene.Node))
    1.25 -
    1.26 -(use 'clojure.contrib.def)
    1.27 -(cortex.import/mega-import-jme3)
    1.28 +   com.jme3.scene.Node
    1.29 +   com.jme3.scene.Geometry
    1.30 +   com.jme3.bullet.collision.shapes.HullCollisionShape))
    1.31  
    1.32  (defn joint-targets
    1.33    "Return the two closest two objects to the joint object, ordered
    1.34 @@ -220,10 +223,6 @@
    1.35    [#^Node creature]
    1.36    (physical! creature)
    1.37    (joints! creature))
    1.38 -
    1.39 -
    1.40 -
    1.41 -
    1.42  #+end_src
    1.43  
    1.44  #+results: joints