Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2008, 9:38:30 PM (15 years ago)
Author:
rgrieder
Message:

Changed the way setPosition, setVelocity, setOrientation and setAngularVelocity is handled in MobileEntity and upwards.
This allows to introduce a lost feature: Position of an enemy ship on the client can't be set anymore at all (local changes were allowed before).

File:
1 edited

Legend:

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

    r2408 r2427  
    8989                { return this->cameraPositionTemplate_; }
    9090
     91            using WorldEntity::setPosition;
     92            using WorldEntity::setOrientation;
     93            using MobileEntity::setVelocity;
     94            using MobileEntity::setAngularVelocity;
     95
     96            void setPosition(const Vector3& position);
     97            void setOrientation(const Quaternion& orientation);
     98            void setVelocity(const Vector3& velocity);
     99            void setAngularVelocity(const Vector3& velocity);
     100
    91101        protected:
    92102            virtual void startLocalControl();
     
    113123            void processClientAngularVelocity();
    114124
    115             void positionChanged       (bool bContinuous);
    116             void orientationChanged    (bool bContinuous);
    117             void linearVelocityChanged (bool bContinuous);
    118             void angularVelocityChanged(bool bContinuous);
     125            void networkcallback_changedplayerID();
    119126
    120             void networkcallback_changedplayerID();
     127            // Bullet btMotionState related
     128            void setWorldTransform(const btTransform& worldTrans);
    121129
    122130            unsigned int server_overwrite_;
Note: See TracChangeset for help on using the changeset viewer.