Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2009, 2:35:54 PM (16 years ago)
Author:
Naaduun
Message:

=movable plane

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/map/src/orxonox/objects/RadarViewable.cc

    r2956 r2977  
    117117//Vector3 v = this->getRVWorldPosition();
    118118            //this->line_->setPoint(1, Vector3(0,v.y,0) );
    119             this->line_->setPoint(1, Vector3(0, -this->getRVWorldPosition().y ,0) );
     119            this->line_->setPoint(1, Vector3( 0, (int) -Map::getSingletonPtr()->movablePlane_->getDistance( this->getRVWorldPosition() ) ,0 ));
    120120            this->line_->update();
    121             this->LineNode_->setDirection(Vector3::UNIT_Y,Ogre::Node::TS_WORLD,Vector3::UNIT_Y);
     121            if( Map::getSingletonPtr()->playerShipNode_ )
     122                this->LineNode_->setDirection( Map::getSingletonPtr()->playerShipNode_->getLocalAxes().GetColumn(1) ,Ogre::Node::TS_WORLD,Vector3::UNIT_Y);
    122123        }
    123124    }
Note: See TracChangeset for help on using the changeset viewer.