Changeset 1927 in orxonox.OLD for orxonox/trunk/core
- Timestamp:
- Jun 8, 2004, 8:20:14 PM (20 years ago)
- Location:
- orxonox/trunk/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/player.cc
r1926 r1927 78 78 shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0); 79 79 shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0); 80 80 shootRocket->addBackParable(xCor, yCor, zCor); 81 81 shootRocket->addSideAcc(xCor, yCor, zCor, RIGHT); 82 82 shootRocket->addSideAcc(xCor, yCor, zCor, LEFT); -
orxonox/trunk/core/shoot_rocket.cc
r1926 r1927 74 74 75 75 case ROTATER: 76 //tmpShoot->xCor+=tmpShoot->xVel;76 tmpShoot->xCor+=tmpShoot->xVel; 77 77 tmpShoot->yCor+=tmpShoot->yVel; 78 //tmpShoot->zCor+=tmpShoot->zVel; 79 //tmpShoot->xVel+=tmpShoot->xVel; 78 tmpShoot->zCor+=tmpShoot->zVel; 80 79 break; 81 80 … … 181 180 182 181 static float radius = 2; 183 rotateAngle+=. 5;182 rotateAngle+=.1; 184 183 //cout << "ShootRocket::addShoot" << endl; 185 184 shoot* sh = new shoot; 186 185 sh->type = ROTATER; 187 186 sh->xCor = x+radius*sin(rotateAngle); sh->yCor = y; sh->zCor = z+radius*cos(rotateAngle); 188 sh->xVel = . 05*sin(rotateAngle);189 sh->yVel = .4;190 sh-> xVel = .05*cos(rotateAngle);191 sh->xAcc = 0; sh->yAcc = .01/step; sh->zAcc = 0;187 sh->xVel = .1*cos(rotateAngle); 188 sh->yVel = 0.4; 189 sh->zVel = .1*sin(rotateAngle); 190 sh->xAcc = 1.01; sh->yAcc = 1.01/step; sh->zAcc = 1.01; 192 191 sh->next = lastShoot; 193 192 lastShoot = sh;
Note: See TracChangeset
for help on using the changeset viewer.