From de766399e2442fbc438123c1c8763e0ae90e6158 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 20 Apr 2012 03:36:39 +0100 Subject: numerous problems --- gaunt01/src/bird.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gaunt01/src/bird.h') diff --git a/gaunt01/src/bird.h b/gaunt01/src/bird.h index 026da72..3ab0da9 100644 --- a/gaunt01/src/bird.h +++ b/gaunt01/src/bird.h @@ -42,6 +42,7 @@ #include "morphmesh.h" #include "normBindTexture.h" #include "player.h" +#include "outsidePolygon.h" #include "ofxRay.h" @@ -50,7 +51,7 @@ class bird public: bird(); virtual ~bird(); - void update(map& players,float angle); + void update(map& players,float angle,vector border); void draw(); void drawShadow(); void drawDebug(); @@ -60,6 +61,7 @@ class bird ofRay pointer; ofVec3f position; + ofVec2f centrePoint; //2d coords of centre of screen vector playang; vector playhead; @@ -67,6 +69,9 @@ class bird vector playdist; vector playpos; + bool leaving; + float centrehead; + float heading; protected: -- cgit v1.2.3