Changeset 1747 for code/trunk/src/orxonox/objects/WorldEntity.h
- Timestamp:
- Sep 9, 2008, 4:25:52 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core3 (added) merged: 1573-1574,1583-1586,1591-1594,1596-1597,1603,1606-1607,1610-1611,1655,1658,1676-1679,1681-1685,1687,1716-1723,1725-1729,1736
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/WorldEntity.h
r1625 r1747 65 65 inline void setPosition(const Vector3& pos) 66 66 { this->node_->setPosition(pos); } 67 inline void setPositionLoader1(const Vector3& pos)68 { this->node_->setPosition(pos); }69 inline void setPositionLoader2(Real x, Real y, Real z)70 { this->node_->setPosition(x, y, z); }71 67 inline void setPosition(Real x, Real y, Real z) 72 68 { this->node_->setPosition(x, y, z); } … … 108 104 inline void rotate(const Vector3& axis, const Radian& angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 109 105 { this->node_->rotate(axis, angle, relativeTo); } 110 inline void setDirection Loader(Real x, Real y, Real z)106 inline void setDirectionSimple(Real x, Real y, Real z) 111 107 { this->setDirection(x, y, z); } 112 108 inline void setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector=Vector3::NEGATIVE_UNIT_Z) … … 117 113 { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); } 118 114 119 inline void setScale (const Vector3&scale)115 inline void setScale3D(const Vector3 &scale) 120 116 { this->node_->setScale(scale); } 121 inline void setScale (Real x, Real y, Real z)117 inline void setScale3D(Real x, Real y, Real z) 122 118 { this->node_->setScale(x, y, z); } 123 inline void setScale(Real scale) 119 inline const Vector3& getScale3D(void) const 120 { return this->node_->getScale(); } 121 inline void setScale(float scale) 124 122 { this->node_->setScale(scale, scale, scale); } 125 inline void setTotalScale(Real scale) 126 { this->node_->setScale(scale, scale, scale); } 127 inline const Vector3& getScale(void) const 128 { return this->node_->getScale(); } 129 inline void scale(const Vector3& scale) 123 inline float getScale() const 124 { Vector3 scale = this->getScale3D(); return (scale.x == scale.y && scale.x == scale.z) ? scale.x : 1; } 125 inline void scale3D(const Vector3 &scale) 130 126 { this->node_->scale(scale); } 131 inline void scale (Real x, Real y, Real z)127 inline void scale3D(Real x, Real y, Real z) 132 128 { this->node_->scale(x, y, z); } 133 129 inline void scale(Real scale) … … 159 155 { return this->acceleration_; } 160 156 161 inline void setRotationAxisLoader(const Vector3& axis)162 { this->rotationAxis_ = axis; rotationAxis_.normalise(); }163 157 inline void setRotationAxis(const Vector3& axis) 164 { this->rotationAxis_ = axis; rotationAxis_.normalise(); }158 { this->rotationAxis_ = axis; this->rotationAxis_.normalise(); } 165 159 inline void setRotationAxis(Real x, Real y, Real z) 166 160 { this->rotationAxis_.x = x; this->rotationAxis_.y = y; this->rotationAxis_.z = z; rotationAxis_.normalise(); }
Note: See TracChangeset
for help on using the changeset viewer.