Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2007, 4:44:51 PM (17 years ago)
Author:
rennerc
Message:

fpsweapon in the correct position

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc

    r10704 r10705  
    168168  glMatrixMode(GL_MODELVIEW);
    169169  glPushMatrix();
    170   glTranslatef (this->getAbsCoor ().x,
    171                 this->getAbsCoor ().y,
    172                 this->getAbsCoor ().z);
     170
     171  Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector( 2, 0, 0 ) );
     172  glTranslatef (pos.x,
     173                pos.y,
     174                pos.z);
    173175
    174176  Vector tmpRot = this->getAbsDir().getSpacialAxis();
     
    183185
    184186  glPopMatrix();
    185 
    186187}
    187188
Note: See TracChangeset for help on using the changeset viewer.