Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 3, 2006, 2:14:22 PM (18 years ago)
Author:
bensch
Message:

trunk: new algorithm for the Camera-Distance

File:
1 edited

Legend:

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

    r7013 r7014  
    6565 * @returns The PNode of the Target (from there you can get position and so on
    6666*/
    67 PNode* Camera::getTarget()
     67PNode* Camera::getTargetNode() const
    6868{
    6969  return (PNode*)this->target;
     
    146146{
    147147  //update frustum plane
    148   this->viewVector = (this->getAbsCoor() -  this->target->getAbsCoor()).getNormalized();
    149   this->frustumPlane = Plane(this->viewVector, this->getAbsCoor() + this->viewVector * 3.0);
     148  this->viewVector = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized();
     149  this->frustumPlane = Plane(this->viewVector, this->getAbsCoor() + this->viewVector * 0.1);
    150150
    151151  this->upVector =  this->getAbsDirV();
Note: See TracChangeset for help on using the changeset viewer.