Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2009, 8:00:42 PM (15 years ago)
Author:
rgrieder
Message:

Making use of Ogre::UserDefinedObject by subclassing it in WorldEntity: This way we can access a WE from an Ogre::MovableObject (e.g. Ogre::Entity or Ogre::ParticleSystem), but with a dynamic_cast of course.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/steering/src/orxonox/graphics/Camera.cc

    r5929 r6052  
    6161
    6262        this->camera_ = this->getScene()->getSceneManager()->createCamera(getUniqueNumberString());
     63        this->camera_->setUserObject(this);
    6364        this->cameraNode_ = this->getScene()->getRootSceneNode()->createChildSceneNode();
    6465        this->attachNode(this->cameraNode_);
Note: See TracChangeset for help on using the changeset viewer.