diff org/skin.org @ 39:2ce7400825c2

further cleanup on touch
author Robert McIntyre <rlm@mit.edu>
date Thu, 03 Nov 2011 10:03:22 -0700
parents eeba17a4bd54
children bc93abad23ee
line wrap: on
line diff
     1.1 --- a/org/skin.org	Thu Nov 03 09:53:02 2011 -0700
     1.2 +++ b/org/skin.org	Thu Nov 03 10:03:22 2011 -0700
     1.3 @@ -6,6 +6,7 @@
     1.4  #+SETUPFILE: ../../aurellem/org/setup.org
     1.5  #+INCLUDE: ../../aurellem/org/level-0.org
     1.6  
     1.7 +
     1.8  * Touch
     1.9  
    1.10  My creatures need to be able to feel their environments. The idea here
    1.11 @@ -26,8 +27,8 @@
    1.12    {:author "Robert McIntyre"}
    1.13    (:use (cortex world util))
    1.14    (:import com.jme3.scene.Geometry)
    1.15 -  (:import com.jme3.collision.CollisionResult)
    1.16 -  (:import com.jme3.math Triangle Vector3f Ray))
    1.17 +  (:import com.jme3.collision.CollisionResults)
    1.18 +  (:import (com.jme3.math Triangle Vector3f Ray)))
    1.19     
    1.20  (defn triangles
    1.21    "Return a sequence of all the Triangles which compose a given
    1.22 @@ -104,9 +105,18 @@
    1.23  
    1.24  * Example
    1.25  
    1.26 +#+srcname: touch-test
    1.27  #+begin_src clojure 
    1.28 +(ns test.touch
    1.29 +  (:use (cortex world util touch)))
    1.30  
    1.31 +(cortex.import/mega-import-jme3)
    1.32    
    1.33 +(import java.util.logging.Level)
    1.34 +(import java.util.logging.Logger)
    1.35 +(use 'hello.brick-wall)
    1.36 +
    1.37 +
    1.38  (defn ray-origin-debug
    1.39    [ray color]
    1.40    (make-shape
    1.41 @@ -267,10 +277,14 @@
    1.42  
    1.43    
    1.44  * COMMENT code generation
    1.45 -#+begin_src clojure :tangle ../src/cortex/touch.clj :noweb yes
    1.46 +#+begin_src clojure :tangle ../src/cortex/touch.clj
    1.47  <<skin-main>>
    1.48  #+end_src
    1.49  
    1.50 +#+begin_src clojure :tangle ../src/test/touch.clj 
    1.51 +<<touch-test>>
    1.52 +#+end_src
    1.53 +
    1.54  
    1.55  
    1.56