Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8486 for code/branches/pickup


Ignore:
Timestamp:
May 16, 2011, 1:27:03 PM (14 years ago)
Author:
dafrick
Message:


File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup/src/modules/pickup/items/ShrinkPickup.cc

    r8433 r8486  
    5151                        //this->pawn->setScale3D(this->pawn->getScale3D() / 2.0);
    5252                        std::set<WorldEntity*> set = this->pawn->getAttachedObjects();
     53                       
     54                        /*this->pawn->setScale3D(this->pawn->getScale3D() / 5.0);
     55            this->pawn->setMass(this->pawn->getMass() / 5.0);
     56
     57            const std::list<SmartPtr<CameraPosition> > cameraPositions = this->pawn->getCameraPositions();
     58            unsigned int size = cameraPositions.size();
     59            for(unsigned int index = 0; index < size; index++)
     60            {
     61                CameraPosition* cameraPos = this->pawn->getCameraPosition(index);
     62                if(cameraPos == NULL)
     63                    continue;
     64                cameraPos->setPosition(cameraPos->getPosition()*5.0);
     65            }*/
    5366                       
    5467                        i = 0;
Note: See TracChangeset for help on using the changeset viewer.