Changeset 2977 for code/branches/map/src/orxonox/objects
- Timestamp:
- May 14, 2009, 2:35:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/map/src/orxonox/objects/RadarViewable.cc
r2956 r2977 117 117 //Vector3 v = this->getRVWorldPosition(); 118 118 //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 )); 120 120 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); 122 123 } 123 124 }
Note: See TracChangeset
for help on using the changeset viewer.