Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2006, 8:39:38 PM (18 years ago)
Author:
muellmic
Message:

work of last week: radar set-up, Gui- Widget class draws itself according to Dir of 2d- element.

File:
1 edited

Legend:

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

    r10081 r10092  
    953953      PRINTF(4)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClassCName());
    954954  }
     955 
     956  this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
     957  this->shiftCoor (this->velocity * dt);
     958 
     959  float angle = this->velocity.z / travelSpeed * pi / 3;
     960  if (angle > pi/4) angle = pi/4;
     961  if (angle < -pi/4) angle = -pi/4;
     962  this->setRelDirSoft(Quaternion(angle, Vector(1,0,0)), 5.0f);
    955963}
    956964
Note: See TracChangeset for help on using the changeset viewer.