Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10556 in orxonox.OLD for trunk/src/world_entities/effects


Ignore:
Timestamp:
Jan 31, 2007, 12:19:10 PM (18 years ago)
Author:
bknecht
Message:

wobblegrid orient improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/effects/wobblegrid.cc

    r10368 r10556  
    2323#include "state.h"
    2424#include "grid.h"
     25
     26#include "cameraman.h"
    2527
    2628#include <assert.h>
     
    198200void Wobblegrid::orient()
    199201{
    200 
    201   Vector view = this->getAbsCoor() - State::getCameraNode()->getAbsCoor();
     202     
     203     CameraMan* cman = State::getCameraman();
     204     Camera* c = cman->getCurrentCam();
     205
     206  Vector view = this->getAbsCoor() - c->getAbsCoor();
    202207//   view.normalize();
    203208
Note: See TracChangeset for help on using the changeset viewer.