summaryrefslogtreecommitdiff
path: root/rayhit
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-04-19 02:14:26 +0100
committerTim Redfern <tim@eclectronics.org>2012-04-19 02:14:26 +0100
commit09fba466578c1074bf7471bbc4615a9047237d46 (patch)
tree5741542ed77047527414218d4d192bd5b590d41b /rayhit
parentc4fc08cc7238dfa310ed56e65a24df22c6bbb625 (diff)
bird chasing players
Diffstat (limited to 'rayhit')
-rw-r--r--rayhit/rayhit.layout2
-rw-r--r--rayhit/src/testApp.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/rayhit/rayhit.layout b/rayhit/rayhit.layout
index 63b7198..369bfe7 100644
--- a/rayhit/rayhit.layout
+++ b/rayhit/rayhit.layout
@@ -11,7 +11,7 @@
<Cursor position="0" topLine="0" />
</File>
<File name="src/testApp.cpp" open="1" top="1" tabpos="4">
- <Cursor position="1148" topLine="0" />
+ <Cursor position="1771" topLine="18" />
</File>
<File name="src/testApp.h" open="0" top="0" tabpos="0">
<Cursor position="641" topLine="0" />
diff --git a/rayhit/src/testApp.cpp b/rayhit/src/testApp.cpp
index 5e1bd14..ff34033 100644
--- a/rayhit/src/testApp.cpp
+++ b/rayhit/src/testApp.cpp
@@ -5,7 +5,7 @@ void testApp::setup(){
ofVec3f centre=ofVec3f(ofGetWidth()/2,0,0); //ofGetHeight(),0);
ofVec3f normal=ofVec3f(0,0,-1);
ray=ofRay();
- plane=ofPlane(centre,normal);
+ plane=ofPlane(centre,normal,normal,ofVec2f(ofGetWidth(),ofGetWidth()));
plane.color=ofColor(255,255,255);
//setup that works for a new camera. but can we match the existing camera, must be possible!