Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5059 in orxonox.OLD for orxonox/trunk/src/world_entities/npc.cc


Ignore:
Timestamp:
Aug 17, 2005, 12:06:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: cool raotating ships

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/npc.cc

    r5058 r5059  
    3131
    3232  this->loadModelWithScale("models/ships/bolido.obj",5);
     33
     34  this->randomRotAxis = VECTOR_RAND(1);
    3335}
    3436
     
    5052  //if (directin.len() < 100)
    5153  this->shiftCoor(direction *dt * 5 * exp(-direction.len() / 30.0));
     54  this->shiftDir(Quaternion(.1, this->randomRotAxis));
    5255
    5356}
Note: See TracChangeset for help on using the changeset viewer.