Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Location:
code/branches/presentation/src/orxonox/objects/worldentities
Files:
2 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();
Note: See TracChangeset for help on using the changeset viewer.