Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 1:38:17 PM (15 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/StaticEntity.h

    r2304 r2374  
    5454            using WorldEntity::setDirection;
    5555
    56             inline void setPosition(const Vector3& position)
    57                 { this->node_->setPosition(position); }
    58             inline void translate(const Vector3& distance, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)
    59                 { this->node_->translate(distance, relativeTo); }
    60             inline void setOrientation(const Quaternion& orientation)
    61                 { this->node_->setOrientation(orientation); }
    62             inline void rotate(const Quaternion& rotation, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)
    63                 { this->node_->rotate(rotation, relativeTo); }
    64             inline void yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)
    65                 { this->node_->yaw(angle, relativeTo); }
    66             inline void pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)
    67                 { this->node_->pitch(angle, relativeTo); }
    68             inline void roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL)
    69                 { this->node_->roll(angle, relativeTo); }
    70             inline void lookAt(const Vector3& target, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z)
    71                 { this->node_->lookAt(target, relativeTo, localDirectionVector); }
    72             inline void setDirection(const Vector3& direction, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z)
    73                 { this->node_->setDirection(direction, relativeTo, localDirectionVector); }
     56            void setPosition(const Vector3& position);
     57            void translate(const Vector3& distance, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL);
     58            void setOrientation(const Quaternion& orientation);
     59            void rotate(const Quaternion& rotation, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL);
     60            void yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL);
     61            void pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL);
     62            void roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL);
     63            void lookAt(const Vector3& target, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z);
     64            void setDirection(const Vector3& direction, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z);
    7465
    7566        private:
     67            bool isCollisionTypeLegal(CollisionType type) const;
    7668
    77             bool isCollisionTypeLegal(CollisionType type) const;
     69            inline void positionChanged()
     70                { this->setPosition(this->getPosition()); }
     71            inline void orientationChanged()
     72                { this->setOrientation(this->getOrientation()); }
    7873
    7974            // Bullet btMotionState related
Note: See TracChangeset for help on using the changeset viewer.