Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2578


Ignore:
Timestamp:
Jan 7, 2009, 6:09:08 PM (15 years ago)
Author:
rgrieder
Message:

Removed an obsolete check and added a source file (Fusion) to the msvc project.

Location:
code/branches/presentation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc

    r2565 r2578  
    767767            return;
    768768        }
    769 
    770         // Only sets this->collisionType_
    771         // However the assertion is to ensure that the internal bullet setting is right
    772         updateCollisionType();
    773         assert(this->collisionType_ == type);
     769        this->collisionType_ = type;
     770        this->collisionTypeSynchronised_ = type;
    774771
    775772        // update mass and inertia tensor
     
    817814                return "";
    818815        }
    819     }
    820 
    821     void WorldEntity::updateCollisionType()
    822     {
    823         if (!this->physicalBody_)
    824             this->collisionType_ = None;
    825         else if (this->physicalBody_->isKinematicObject())
    826             this->collisionType_ = Kinematic;
    827         else if (this->physicalBody_->isStaticObject())
    828             this->collisionType_ = Static;
    829         else
    830             this->collisionType_ = Dynamic;
    831         this->collisionTypeSynchronised_ = this->collisionType_;
    832816    }
    833817
  • code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.h

    r2565 r2578  
    369369
    370370        private:
    371             void updateCollisionType();
    372371            void recalculateMassProps();
    373372            void internalSetPhysicsProps();
  • code/branches/presentation/visual_studio/vc8/orxonox.vcproj

    r2564 r2578  
    457457                                                >
    458458                                                <File
     459                                                        RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\Fusion.cc"
     460                                                        >
     461                                                </File>
     462                                                <File
    459463                                                        RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\LaserGun.cc"
    460464                                                        >
     
    12411245                                                >
    12421246                                                <File
     1247                                                        RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\Fusion.h"
     1248                                                        >
     1249                                                </File>
     1250                                                <File
    12431251                                                        RelativePath="..\..\src\orxonox\objects\weaponSystem\weapons\LaserGun.h"
    12441252                                                        >
Note: See TracChangeset for help on using the changeset viewer.