Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10106 in orxonox.OLD for branches/camera/src/world_entities


Ignore:
Timestamp:
Dec 19, 2006, 9:03:13 PM (18 years ago)
Author:
gfilip
Message:

just to be save ;) part 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/camera.cc

    r10105 r10106  
    323323
    324324
    325 Vector CameraTarget::iterate(float dt, Vector* target, Vector* cam)
     325Vector CameraTarget::iterate(float dt, const Vector* target, const Vector* cam)
    326326{
    327327
     
    337337void CameraTarget::translate(Vector* newPos, float speed, float dt)
    338338{
    339   if (translateTo.x >= this->getAbsCoorX())
    340   {
    341     iterate(dt, &(State::getCameraNode()->getAbsCoor()), newPos );
    342   glTranslatef(translateTo.x, translateTo.y, translateTo.z);
     339  if (translateTo.x >= 0.01+this->getAbsCoorX())
     340  {
     341    Vector tmpVec= iterate(dt,  newPos,  &(State::getCameraNode()->getAbsCoor()));
     342  glTranslatef(tmpVec.x, tmpVec.y, tmpVec.z);
    343343  }
    344344}
Note: See TracChangeset for help on using the changeset viewer.