Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6092 in orxonox.OLD


Ignore:
Timestamp:
Dec 13, 2005, 9:41:53 PM (18 years ago)
Author:
bknecht
Message:

spaceshipbranch: some new changes on helicopter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/space_ships/helicopter.cc

    r6058 r6092  
    285285     {
    286286       rot += Vector (0,0,1);
    287        rotVal -= .4;
     287       rotVal -= time/5;
    288288     }
    289289   }
     
    300300     {
    301301       rot += Vector (0,0,1);
    302        rotVal += .4;
     302       rotVal += time/5;
    303303     }
    304304   }
    305305   else
    306306   {
    307          if(this->getAbsDirX().y > 0.02) this->shiftDir(Quaternion(-time/5, Vector(0,0,1)));
     307         if(this->getAbsDirZ().y > 0.02) this->shiftDir(Quaternion(-time/5, Vector(0,0,1)));
    308308   }
    309309
     
    316316    {
    317317      rot +=Vector(1,0,0);
    318       rotVal -= .06;
    319     }
    320   }
     318      rotVal -= time/5;
     319    }
     320  }
     321  else
     322   {
     323         if(this->getAbsDirZ().y > 0.02) this->shiftDir(Quaternion(time/5, Vector(1,0,0)));
     324   }
     325   
    321326  if( this->bRight /* > this->getRelCoor().z*2*/)
    322327  {
     
    328333    {
    329334      rot += Vector(1,0,0);
    330       rotVal += .06;
    331     }
    332   }
     335      rotVal += time/5;
     336    }
     337  }
     338  else
     339   {
     340         if(this->getAbsDirZ().y < -0.02) this->shiftDir(Quaternion(-time/5, Vector(1,0,0)));
     341   }
    333342
    334343  if( this->bRollL /* > -this->getRelCoor().z*2*/)
Note: See TracChangeset for help on using the changeset viewer.