Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Location:
code/branches/physics/src/orxonox/objects/collisionshapes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/collisionshapes/CollisionShape.cc

    r2429 r2433  
    100100    void CollisionShape::setScale3D(const Vector3& scale)
    101101    {
    102         ThrowException(NotImplemented, "Cannot set the scale of a collision shape: Not yet implemented.");
    103         this->updateParent();
     102        CCOUT(2) << "Warning: Cannot set the scale of a collision shape: Not yet implemented." << std::endl;
    104103    }
    105104
    106105    void CollisionShape::setScale(float scale)
    107106    {
    108         ThrowException(NotImplemented, "Cannot set the scale of a collision shape: Not yet implemented.");
    109         this->updateParent();
     107        CCOUT(2) << "Warning: Cannot set the scale of a collision shape: Not yet implemented." << std::endl;
    110108    }
    111109
  • code/branches/physics/src/orxonox/objects/collisionshapes/CompoundCollisionShape.cc

    r2423 r2433  
    7272        if (this->childShapes_.find(shape) != this->childShapes_.end())
    7373        {
    74             ThrowException(NotImplemented, "Warning: Attaching a CollisionShape twice is not yet supported.");
     74            CCOUT(2) << "Warning: Attaching a CollisionShape twice is not yet supported." << std::endl;
    7575            return;
    7676        }
Note: See TracChangeset for help on using the changeset viewer.