Changeset 8820 for code/branches/output/src/orxonox/worldentities
- Timestamp:
- Aug 3, 2011, 11:28:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/worldentities/WorldEntity.cc
r8809 r8820 95 95 this->collisionType_ = None; 96 96 this->collisionTypeSynchronised_ = None; 97 this->mass_ = 0;97 this->mass_ = 1.0f; 98 98 this->childrenMass_ = 0; 99 99 // Using bullet default values … … 968 968 this->physicalBody_->setMassProps(0.0f, btVector3(0, 0, 0)); 969 969 } 970 else if ( (this->mass_ + this->childrenMass_)== 0.0f)970 else if (totalMass == 0.0f) 971 971 { 972 972 // Use default values to avoid very large or very small values
Note: See TracChangeset
for help on using the changeset viewer.