Changeset 10768 for code/branches/cpp11_v2/src/orxonox/collisionshapes
- Timestamp:
- Nov 6, 2015, 10:54:34 PM (10 years ago)
- Location:
- code/branches/cpp11_v2/src/orxonox/collisionshapes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/collisionshapes/CollisionShape.cc
r10624 r10768 57 57 RegisterObject(CollisionShape); 58 58 59 this->parent_ = 0;59 this->parent_ = nullptr; 60 60 this->parentID_ = OBJECTID_UNKNOWN; 61 this->collisionShape_ = 0;61 this->collisionShape_ = nullptr; 62 62 this->position_ = Vector3::ZERO; 63 63 this->orientation_ = Quaternion::IDENTITY; … … 154 154 void CollisionShape::notifyDetached() 155 155 { 156 this->parent_ = 0;156 this->parent_ = nullptr; 157 157 this->parentID_ = OBJECTID_UNKNOWN; 158 158 } -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r10765 r10768 197 197 void CompoundCollisionShape::updatePublicShape() 198 198 { 199 btCollisionShape* primitive = 0; // The primitive shape, if there is one.199 btCollisionShape* primitive = nullptr; // The primitive shape, if there is one. 200 200 bool bPrimitive = true; // Whether the CompoundCollisionShape has just one non-empty CollisionShape. And that shape also has no transformation. 201 201 bool bEmpty = true; // Whether the CompoundCollisionShape is empty. … … 221 221 { 222 222 // If there was none all along, nothing needs to be changed. 223 if (this->collisionShape_ == 0)223 if (this->collisionShape_ == nullptr) 224 224 return; 225 this->collisionShape_ = 0;225 this->collisionShape_ = nullptr; 226 226 } 227 227 // If the CompoundCollisionShape is just a primitive. … … 253 253 ++i; 254 254 } 255 return 0;255 return nullptr; 256 256 } 257 257 -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.h
r9667 r10768 75 75 void updatePublicShape(); 76 76 inline virtual btCollisionShape* createNewShape() const 77 { assert(false); return 0; }77 { assert(false); return nullptr; } 78 78 79 79 btCompoundShape* compoundShape_; -
code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc
r10765 r10768 54 54 CollisionShape::updateParent(); 55 55 56 assert(this->worldEntityOwner_ != 0);56 assert(this->worldEntityOwner_ != nullptr); 57 57 this->worldEntityOwner_->notifyCollisionShapeChanged(); 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.