Changeset 1920 in orxonox.OLD for orxonox/trunk/core/shoot_laser.cc
- Timestamp:
- Jun 8, 2004, 1:47:33 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/shoot_laser.cc
r1919 r1920 47 47 glPushMatrix(); 48 48 glTranslatef(tmpShoot->xCor, tmpShoot->yCor, tmpShoot->zCor); 49 tmpShoot->xCor+=tmpShoot->x Inc;50 tmpShoot->yCor+=tmpShoot->y Inc;49 tmpShoot->xCor+=tmpShoot->xVel; 50 tmpShoot->yCor+=tmpShoot->yVel; 51 51 glScalef(0.1, 0.1, 0.1); 52 52 glutWireCube(1.0); … … 113 113 shoot* sh = new shoot; 114 114 sh->xCor = x; sh->yCor = y; sh->zCor = z; 115 sh->x Inc = 0; sh->yInc = .4/step; sh->zInc= 0;115 sh->xVel = 0; sh->yVel = .4/step; sh->zVel = 0; 116 116 sh->next = lastShoot; 117 117 lastShoot = sh; … … 119 119 120 120 void ShootLaser::addShootExt(float x, float y, float z, 121 float x Inc, float yInc, float zInc)121 float xVel, float yVel, float zVel) 122 122 { 123 123 //cout << "ShootLaser::addShootExtended" << endl; 124 124 shoot* sh = new shoot; 125 125 sh->xCor = x; sh->yCor = y; sh->zCor = z; 126 sh->x Inc = xInc/step; sh->yInc = yInc/step; sh->zInc = zInc/step;126 sh->xVel = xVel/step; sh->yVel = yVel/step; sh->zVel = zVel/step; 127 127 sh->next = lastShoot; 128 128 lastShoot = sh;
Note: See TracChangeset
for help on using the changeset viewer.