Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6895 in orxonox.OLD for branches/network


Ignore:
Timestamp:
Jan 31, 2006, 2:48:01 PM (19 years ago)
Author:
rennerc
Message:

spaceship: made velocity not depend on dt. velocity is only calculated on owner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/space_ships/space_ship.cc

    r6893 r6895  
    320320
    321321  // spaceship controlled movement
    322   this->calculateVelocity(time);
     322   if (this->getOwner() == this->getHostID())
     323     this->calculateVelocity(time);
    323324
    324325  Vector move = velocity*time;
     
    450451  }
    451452
    452   velocity += accel*time;
     453  velocity += accel;
    453454  //rot.normalize();
    454455  //this->setRelDirSoft(Quaternion(rotVal, rot), 5);
Note: See TracChangeset for help on using the changeset viewer.