- Timestamp:
- Jan 4, 2009, 4:32:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.h
r2562 r2565 343 343 inline void disableCollisionCallback() 344 344 { this->bCollisionCallbackActive_ = false; this->collisionCallbackActivityChanged(); } 345 //! Tells whether there could be a collision responsevia collidesAgainst(.)345 //! Tells whether there could be a collision callback via collidesAgainst(.) 346 346 inline bool isCollisionCallbackActive() const 347 347 { 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_; } 348 355 349 356 protected: … … 373 380 void physicsActivityChanged(); 374 381 void collisionCallbackActivityChanged(); 382 void collisionResponseActivityChanged(); 375 383 //! Network callback workaround to call a function when the value changes. 376 384 inline void massChanged() … … 408 416 btScalar childrenMass_; //!< Sum of all the children's masses 409 417 bool bCollisionCallbackActive_; //!< @see enableCollisionCallback 418 bool bCollisionResponseActive_; //!< Tells whether the object should respond to collisions 410 419 }; 411 420
Note: See TracChangeset
for help on using the changeset viewer.