Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 1:38:17 PM (17 years ago)
Author:
rgrieder
Message:

Trying to synchronise phyiscs over the network.

  • Removed derivation of CollisionShape from WorldEntity (BaseObject instead).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/worldentities/WorldEntity.h

    r2313 r2374  
    164164                { this->roll(angle); }
    165165
     166            inline void scaleChanged()
     167                { this->setScale3D(this->getScale3D()); }
     168
    166169            WorldEntity* parent_;
    167170            unsigned int parentID_;
     
    186189            bool isKinematic() const { return getCollisionType() == Kinematic; }
    187190            bool isDynamic()   const { return getCollisionType() == Dynamic  ; }
     191            bool isPhysicsRunning() const;
    188192
    189193            inline CollisionType getCollisionType() const
     
    201205            CollisionShape* getAttachedCollisionShape(unsigned int index) const;
    202206
    203             inline CollisionShape* getCollisionShape()
     207            inline CompoundCollisionShape* getCollisionShape()
    204208                { return this->collisionShape_; }
    205209            inline btRigidBody* getPhysicalBody()
     
    220224            void removeFromPhysicalWorld() const;
    221225
     226            // network callbacks
     227            void collisionTypeChanged();
     228            void massChanged();
     229
    222230            CollisionType                collisionType_;
    223             std::vector<CollisionShape*> attachedShapes_;
    224             CollisionShape*              collisionShape_;
     231            CollisionType                collisionTypeSynchronised_;
     232            CompoundCollisionShape*      collisionShape_;
    225233            btScalar                     mass_;
    226234            btScalar                     childMass_;
Note: See TracChangeset for help on using the changeset viewer.