Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 11:32:01 AM (15 years ago)
Author:
rgrieder
Message:

Ensured OGRE v1.7 "Cthugha" code compatibility. Does not yet seem to run run though.

Location:
code/trunk/src/orxonox/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/WorldEntity.cc

    r6417 r6501  
    474474    {
    475475        this->node_->attachObject(object);
    476         object->setUserObject(this);
     476        object->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this)));
    477477    }
    478478
     
    489489    void WorldEntity::detachOgreObject(Ogre::MovableObject* object)
    490490    {
    491         object->setUserObject(NULL);
     491        object->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(NULL)));
    492492        this->node_->detachObject(object);
    493493    }
  • code/trunk/src/orxonox/worldentities/WorldEntity.h

    r6417 r6501  
    3333#include "OrxonoxPrereqs.h"
    3434
    35 #include <OgreUserDefinedObject.h>
    3635#ifdef ORXONOX_RELEASE
    3736#  include <OgreSceneNode.h>
     
    7069        Collision shapes: These are controlled by the internal WorldEntityCollisionShape. @see WorldEntityCollisionShape.
    7170    */
    72     class _OrxonoxExport WorldEntity : public BaseObject, public Synchronisable, public btMotionState, public Ogre::UserDefinedObject
     71    class _OrxonoxExport WorldEntity : public BaseObject, public Synchronisable, public btMotionState
    7372    {
    7473        friend class Scene;
Note: See TracChangeset for help on using the changeset viewer.