Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2012, 4:09:25 PM (13 years ago)
Author:
scmoritz
Message:

3DScene added. creation of the arrow doesnt work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/waypoints/src/modules/overlays/hud/HUDNavigation.cc

    r9016 r9159  
    3636#include <OgreTextAreaOverlayElement.h>
    3737#include <OgrePanelOverlayElement.h>
     38#include <OgreEntity.h>
    3839
    3940#include "util/Math.h"
     
    8081    this->setNavMarkerSize ( 0.05f );
    8182    this->setDetectionLimit( 10000.0f );
     83
     84    Ogre::Entity* ent = this->getScene()->getSceneManager()->createEntity("Arrow3D", "Arrow3D.mesh");
     85    this->add3DMesh(ent);
     86    this->overlay3d_->setPosition(0, 0, -10);
    8287}
    8388
Note: See TracChangeset for help on using the changeset viewer.