# HG changeset patch # User Robert McIntyre # Date 1320339802 25200 # Node ID 2ce7400825c2ee0460c17a580cfa9f4c9f1028d5 # Parent 99971a59b6acc5b807fc291b7b921e19c1014577 further cleanup on touch diff -r 99971a59b6ac -r 2ce7400825c2 org/skin.org --- a/org/skin.org Thu Nov 03 09:53:02 2011 -0700 +++ b/org/skin.org Thu Nov 03 10:03:22 2011 -0700 @@ -6,6 +6,7 @@ #+SETUPFILE: ../../aurellem/org/setup.org #+INCLUDE: ../../aurellem/org/level-0.org + * Touch My creatures need to be able to feel their environments. The idea here @@ -26,8 +27,8 @@ {:author "Robert McIntyre"} (:use (cortex world util)) (:import com.jme3.scene.Geometry) - (:import com.jme3.collision.CollisionResult) - (:import com.jme3.math Triangle Vector3f Ray)) + (:import com.jme3.collision.CollisionResults) + (:import (com.jme3.math Triangle Vector3f Ray))) (defn triangles "Return a sequence of all the Triangles which compose a given @@ -104,9 +105,18 @@ * Example +#+srcname: touch-test #+begin_src clojure +(ns test.touch + (:use (cortex world util touch))) +(cortex.import/mega-import-jme3) +(import java.util.logging.Level) +(import java.util.logging.Logger) +(use 'hello.brick-wall) + + (defn ray-origin-debug [ray color] (make-shape @@ -267,10 +277,14 @@ * COMMENT code generation -#+begin_src clojure :tangle ../src/cortex/touch.clj :noweb yes +#+begin_src clojure :tangle ../src/cortex/touch.clj <> #+end_src +#+begin_src clojure :tangle ../src/test/touch.clj +<> +#+end_src +