Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7014 in orxonox.OLD for trunk/src/world_entities/world_entity.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/world_entity.cc

    r6959 r7014  
    3030
    3131#include "state.h"
     32#include "camera.h"
    3233
    3334using namespace std;
     
    319320
    320321    // This Draws the LOD's
    321     float cameraDistance = (State::getCamera()->getAbsCoor() - this->getAbsCoor()).len();
     322    float cameraDistance = State::getCamera()->distance(this);
     323    printf("%s::%s, distance %f\n", this->getClassName(), this->getName(), cameraDistance);
    322324    if (cameraDistance > 30 && this->models.size() >= 3 && this->models[2] != NULL)
    323325    {
Note: See TracChangeset for help on using the changeset viewer.