From 81508e0a24b9981f08afe3752093ed626a2c51d9 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 31 Mar 2012 22:17:55 +0100 Subject: nearly working trap door --- gaunt01/src/testApp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gaunt01/src/testApp.cpp') diff --git a/gaunt01/src/testApp.cpp b/gaunt01/src/testApp.cpp index 1ab413b..3b81cdd 100644 --- a/gaunt01/src/testApp.cpp +++ b/gaunt01/src/testApp.cpp @@ -39,7 +39,9 @@ void testApp::setup(){ cam.lookAt(ofVec3f(ofGetWidth()/2,ofGetHeight()/2,0),ofVec3f(0, -1, 0)); cam.setFov(42.0); //39.85); //53.13); - trapDoor=trapdoor(ofRectangle(0,0,ofGetWidth(),ofGetHeight()),ofVec2f(20,20)); + trapDoor=trapdoor(ofRectangle(0,ofGetHeight()/4,ofGetHeight(),ofGetHeight()),ofVec2f(20,20)); + + } @@ -114,6 +116,7 @@ void testApp::draw(){ ofPushMatrix(); ofRotate(cam_angle,1,0,0); + //cam.Rotate(cam_angle,1,0,0); for (float i=0;i<=ofGetWidth();i+=ofGetWidth()/10) { glBegin(GL_LINES); @@ -175,7 +178,6 @@ void testApp::draw(){ ofBox(0,-10,0,20); //for now, draw in this axis ofPopMatrix(); - } trapDoor.checkUpdate(players); -- cgit v1.2.3