Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10131 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 20, 2006, 5:02:04 PM (18 years ago)
Author:
gfilip
Message:

wackel wackel

File:
1 edited

Legend:

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

    r10128 r10131  
    2323#include "targets.h"
    2424#include <iostream.h>
     25
    2526
    2627
     
    354355void CameraTarget::translate(float speed, float dt)
    355356{
    356   if (translateTo.x >= 0.01+target->getAbsCoorX() || translateTo.y >= 0.01+target->getAbsCoorY() || translateTo.z
    357       >= 0.01+target->getAbsCoorZ() || translateTo.x <= target->getAbsCoorX()-0.01 || translateTo.y <= target->getAbsCoorY()-0.01 || translateTo.z
    358       <= target->getAbsCoorZ()-0.01)
     357  if (fabs(translateTo.x -target->getAbsCoorX()) >= 0.01 || fabs(translateTo.y -target->getAbsCoorY()) >= 0.01 || fabs(translateTo.z -target->getAbsCoorZ()) >= 0.01 )
    359358  {
    360359    Vector tmpVec= iterate(dt,  &translateTo,  &(State::getCameraNode()->getAbsCoor()));
    361360    glLoadIdentity();
    362     //glTranslatef(
    363     cout << tmpVec.x;
    364361    target->setAbsCoor(target->getAbsCoorX()+tmpVec.x, target->getAbsCoorY()+tmpVec.y, target->getAbsCoorZ()+tmpVec.z);
    365362  }
Note: See TracChangeset for help on using the changeset viewer.