Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 1, 2009, 7:34:44 PM (15 years ago)
Author:
rgrieder
Message:
  • Added WorldEntityCollisionShape to clarify when a CompoundCollisionShape belongs to a WE.
  • Also fixed problems with the synchronisation of the CollisionShape hierarchy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/collisionshapes/CollisionShape.h

    r2515 r2562  
    7575            bool hasTransform() const;
    7676
    77             inline void setParent(CompoundCollisionShape* shape, unsigned int ID)
    78                 { this->parent_ = shape; this->parentID_ = ID; }
     77            bool notifyBeingAttached(CompoundCollisionShape* newParent);
     78            void notifyDetached();
    7979
    8080        protected:
     
    8585            btCollisionShape*       collisionShape_;
    8686            CompoundCollisionShape* parent_;
     87            unsigned int            parentID_;
    8788
    8889        private:
     
    9091            Quaternion              orientation_;
    9192            Vector3                 scale_;
    92             unsigned int            parentID_;
    9393    };
    9494}
Note: See TracChangeset for help on using the changeset viewer.