diff options
Diffstat (limited to 'gaunt01/src/trapdoor.h')
| -rw-r--r-- | gaunt01/src/trapdoor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gaunt01/src/trapdoor.h b/gaunt01/src/trapdoor.h index 43121e3..b1318b3 100644 --- a/gaunt01/src/trapdoor.h +++ b/gaunt01/src/trapdoor.h @@ -17,12 +17,15 @@ creaking sound player class trapdoor { public: - trapdoor(ofRectangle boundingRect=ofRectangle(0,0,100,100),ofVec2f _doorSize=ofVec2f(10,10)); + trapdoor(ofVec2f _boundTR=ofVec2f(0,0),ofVec2f _boundBR=ofVec2f(0,0),ofVec2f _doorSize=ofVec2f(10,10)); virtual ~trapdoor(); void checkUpdate(const vector<ofVec3f>& players); void draw(); void start(); + + vector<ofVec2f> getCorners(); + ofVec2f bounds2UV(ofVec2f pt); protected: private: @@ -30,6 +33,9 @@ class trapdoor morphmesh lid; ofVec2f position; + ofVec2f boundTR; + ofVec2f boundBR; + ofVec2f size; float startTime; float triggerTime; //time threshold |
