Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 12:25:13 AM (17 years ago)
Author:
rgrieder
Message:

Replaced most Exception throwing considering physics with warnings. Actions are simply ignored then.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/worldentities/StaticEntity.cc

    r2426 r2433  
    6262    {
    6363        if (this->addedToPhysicalWorld())
    64             ThrowException(PhysicsViolation, "Cannot change position or orientation of a StaticEntity with physics at run time.");
     64        {
     65            CCOUT(2) << "Warning: Attempting to change the position of a StaticEntity at physics run time. Ignoring change." << std::endl;
     66            return;
     67        }
    6568        if (this->isStatic())
    6669        {
     
    7679    {
    7780        if (this->addedToPhysicalWorld())
    78             ThrowException(PhysicsViolation, "Cannot change position or orientation of a StaticEntity with physics at run time.");
     81        {
     82            CCOUT(2) << "Warning: Attempting to change the orientation of a StaticEntity at physics run time. Ignoring change." << std::endl;
     83            return;
     84        }
    7985        if (this->isStatic())
    8086        {
     
    101107    {
    102108        OrxAssert(false, "Setting world transform of a StaticEntity, which is CF_STATIC!");
    103         //COUT(0) << "Setting world transform of a StaticEntity, which is static!" << std::endl;
    104109    }
    105110
Note: See TracChangeset for help on using the changeset viewer.