summaryrefslogtreecommitdiff
path: root/gaunt01/src/bird.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-04-06 00:00:16 +0100
committerTim Redfern <tim@eclectronics.org>2012-04-06 00:00:16 +0100
commitadc1fe0182495151eba174f7ab5b99a900e10b5e (patch)
tree2b7baf06b652f8191d999ce10c1a1fb1ac1137c4 /gaunt01/src/bird.cpp
parent13efc34b839db4f16fcfb4ea0aa3f768f144cd65 (diff)
changed morphmesh to use associative keys for targets
Diffstat (limited to 'gaunt01/src/bird.cpp')
-rw-r--r--gaunt01/src/bird.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gaunt01/src/bird.cpp b/gaunt01/src/bird.cpp
index 204bf6e..388d7af 100644
--- a/gaunt01/src/bird.cpp
+++ b/gaunt01/src/bird.cpp
@@ -29,14 +29,17 @@ void bird::update(const vector<ofVec3f>& players){
position+=direction*velocity*timeSeg;
}
void bird::draw(){
+ glEnable(GL_DEPTH_TEST);
ofPushMatrix();
ofTranslate(position);
//ofRotate(direction);
- ofRotate(90,0,-1,0);
+ ofRotate(90,0,0,1);
+ ofRotate(90,-1,0,0);
//ofRotate(180,1,0,0);
bindTexture(texture);
model.draw();
unbindTexture(texture);
ofPopMatrix();
+ glDisable(GL_DEPTH_TEST);
}