- Timestamp:
- May 16, 2019, 6:27:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxStones.cc
r12393 r12394 18 18 19 19 this->size_ = 9.0f; 20 this->health_ = 1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;20 this->health_ = 1; 21 21 this->delay_ = false; 22 22 } … … 33 33 return this->size_; 34 34 } 35 36 bool OrxoBloxStones::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 37 { 38 orxout() << "a stone should die" << endl; 39 this->destroy(); 40 return true; 41 } 35 42 }
Note: See TracChangeset
for help on using the changeset viewer.