Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 4, 2009, 4:32:33 PM (17 years ago)
Author:
rgrieder
Message:

Added XML parameter "collisionResponse" in WE for Oli ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.h

    r2562 r2565  
    343343            inline void disableCollisionCallback()
    344344                { this->bCollisionCallbackActive_ = false; this->collisionCallbackActivityChanged(); }
    345             //! Tells whether there could be a collision response via collidesAgainst(.)
     345            //! Tells whether there could be a collision callback via collidesAgainst(.)
    346346            inline bool isCollisionCallbackActive() const
    347347                { return this->bCollisionCallbackActive_; }
     348
     349            //! Enables or disables collision response (default is of course on)
     350            inline void setCollisionResponse(bool value)
     351                { this->bCollisionResponseActive_ = value; this->collisionResponseActivityChanged(); }
     352            //! Tells whether there could be a collision response
     353            inline bool hasCollisionResponse()
     354                { return this->bCollisionResponseActive_; }
    348355
    349356        protected:
     
    373380            void physicsActivityChanged();
    374381            void collisionCallbackActivityChanged();
     382            void collisionResponseActivityChanged();
    375383            //! Network callback workaround to call a function when the value changes.
    376384            inline void massChanged()
     
    408416            btScalar                     childrenMass_;                  //!< Sum of all the children's masses
    409417            bool                         bCollisionCallbackActive_;      //!< @see enableCollisionCallback
     418            bool                         bCollisionResponseActive_;      //!< Tells whether the object should respond to collisions
    410419    };
    411420
Note: See TracChangeset for help on using the changeset viewer.