Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1927 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 8, 2004, 8:20:14 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/core: now the spirale is really nice

Location:
orxonox/trunk/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/player.cc

    r1926 r1927  
    7878  shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0);
    7979  shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0);
    80    shootRocket->addBackParable(xCor, yCor, zCor);
     80  shootRocket->addBackParable(xCor, yCor, zCor);
    8181  shootRocket->addSideAcc(xCor, yCor, zCor, RIGHT);
    8282  shootRocket->addSideAcc(xCor, yCor, zCor, LEFT);
  • orxonox/trunk/core/shoot_rocket.cc

    r1926 r1927  
    7474       
    7575        case ROTATER:
    76           // tmpShoot->xCor+=tmpShoot->xVel;
     76          tmpShoot->xCor+=tmpShoot->xVel;
    7777          tmpShoot->yCor+=tmpShoot->yVel;
    78           //tmpShoot->zCor+=tmpShoot->zVel;
    79           //tmpShoot->xVel+=tmpShoot->xVel;
     78          tmpShoot->zCor+=tmpShoot->zVel;
    8079          break;
    8180       
     
    181180 
    182181  static float radius = 2;
    183   rotateAngle+=.5;
     182  rotateAngle+=.1;
    184183  //cout << "ShootRocket::addShoot" << endl;
    185184  shoot* sh = new shoot;
    186185  sh->type = ROTATER;
    187186  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;
    192191  sh->next = lastShoot;
    193192  lastShoot = sh;
Note: See TracChangeset for help on using the changeset viewer.