From c4fc08cc7238dfa310ed56e65a24df22c6bbb625 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 18 Apr 2012 17:40:55 +0100 Subject: trapdoor splashes etc --- gaunt01/src/player.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'gaunt01/src/player.h') diff --git a/gaunt01/src/player.h b/gaunt01/src/player.h index e89c5b8..9167237 100644 --- a/gaunt01/src/player.h +++ b/gaunt01/src/player.h @@ -9,16 +9,28 @@ class player : public ofTessellator public: player(); virtual ~player(); - void setPosition(ofVec3f _pos); - ofVec3f getPosition(); + void setScreenPosition(ofVec2f _pos); + void setWorldPosition(ofVec3f _pos); + ofVec3f getWorldPosition(); + ofVec2f getScreenPosition(); + ofVec3f getCaughtPos(); void update(ofxCvBlob blob); void draw(); + void caught(); + bool isCaught; + void carried(ofVec3f _posOffset); + void setCatchTransform(ofVec3f _catchPos,ofVec3f _catchScale); protected: private: ofMesh billboard; ofPolyline outline; - ofVec3f position; - + ofVec3f worldPosition; + ofVec2f screenPosition; + ofVec2f caughtPos; + ofVec3f catchPos; + ofVec3f catchScale; + ofVec2f posOffset; + }; #endif // PLAYER_H -- cgit v1.2.3