Changeset 1899 in orxonox.OLD for orxonox/trunk/core/npc.cc
- Timestamp:
- May 20, 2004, 1:03:53 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/npc.cc
r1896 r1899 30 30 31 31 32 void NPC::setPosition( int x, int y, int z)32 void NPC::setPosition(float x, float y, float z) 33 33 { 34 34 xCor = x; yCor = y; zCor = z; 35 35 } 36 36 37 void NPC::getPosition( int* x, int* y, int* z)37 void NPC::getPosition(float* x, float* y, float* z) 38 38 { 39 39 *x = xCor; … … 42 42 } 43 43 44 void NPC::setCollisionRadius( int r)44 void NPC::setCollisionRadius(float r) 45 45 { 46 46 collisionRadius = r; … … 56 56 void NPC::drawNPC(void) 57 57 { 58 cout << "Player::drawNPC()" << endl; 58 glPushMatrix(); 59 glTranslatef(xCor, yCor, 3.0); 60 //glScalef(1.0, 3.0, 1.0); 61 glutWireSphere(1.0, 10, 10); 62 glPopMatrix(); 63 //cout << "Player::drawNPC()" << endl; 59 64 }
Note: See TracChangeset
for help on using the changeset viewer.