Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4996 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Aug 13, 2005, 2:21:18 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: reparenting now also works for Dir - optimizing

File:
1 edited

Legend:

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

    r4994 r4996  
    142142    case VIEW_FRONT:
    143143      this->toFovy = 120.0;
    144      // this->softReparent("Player");
     144      this->softReparent("Player");
    145145      this->target->softReparent("Player");
    146146      this->setRelCoorSoft(4, 0, 0);
     
    205205  Vector cameraPosition = this->getAbsCoor();
    206206  Vector targetPosition = this->target->getAbsCoor();
    207   Vector up = Vector(0, 1, 0);
    208   up = this->getAbsDir().apply(up);
     207  Vector up = this->getAbsDirV();
    209208
    210209  // Setting the Camera Eye, lookAt and up Vectors
Note: See TracChangeset for help on using the changeset viewer.