Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2019, 6:27:53 PM (5 years ago)
Author:
pomselj
Message:

almost done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxStones.cc

    r12393 r12394  
    1818
    1919        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;
    2121        this->delay_ = false;
    2222    }
     
    3333        return this->size_;
    3434    }
     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    }
    3542}
Note: See TracChangeset for help on using the changeset viewer.