Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7013 in orxonox.OLD for trunk/src/world_entities/camera.cc


Ignore:
Timestamp:
Feb 3, 2006, 12:59:42 PM (19 years ago)
Author:
bensch
Message:

trunk: better interface to CameraDistance

File:
1 edited

Legend:

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

    r7009 r7013  
    146146{
    147147  //update frustum plane
    148   this->viewVector = this->getAbsCoor() -  this->target->getAbsCoor();
    149   this->frustumPlane = Plane(this->viewVector, this->getAbsCoor() + Vector(-70.0,0.0,0.0));
     148  this->viewVector = (this->getAbsCoor() -  this->target->getAbsCoor()).getNormalized();
     149  this->frustumPlane = Plane(this->viewVector, this->getAbsCoor() + this->viewVector * 3.0);
    150150
    151151  this->upVector =  this->getAbsDirV();
Note: See TracChangeset for help on using the changeset viewer.