Changeset 853 for code/branches/core/src/orxonox/objects
- Timestamp:
- Mar 5, 2008, 6:38:09 PM (17 years ago)
- Location:
- code/branches/core/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/objects/WorldEntity.cc
r850 r853 172 172 XMLPortParam(WorldEntity, "position", setPosition, getPosition, xmlelement, loading); 173 173 // XMLPortParam(WorldEntity, "direction", setDirection, getDirection, xmlelement, loading); 174 // XMLPortParam(WorldEntity, "yaw", yaw, getYaw, xmlelement, loading);175 // XMLPortParam(WorldEntity, "pitch", pitch, getPitch, xmlelement, loading);176 // XMLPortParam(WorldEntity, "roll", roll, getRoll, xmlelement, loading);177 XMLPortParam(WorldEntity, "scale", set Scale, getScale, xmlelement, loading);174 XMLPortParamLoadOnly(WorldEntity, "yaw", setYaw, xmlelement, loading); 175 XMLPortParamLoadOnly(WorldEntity, "pitch", setPitch, xmlelement, loading); 176 XMLPortParamLoadOnly(WorldEntity, "roll", setRoll, xmlelement, loading); 177 XMLPortParam(WorldEntity, "scale", setTotalScale, getScale, xmlelement, loading); 178 178 XMLPortParam(WorldEntity, "rotationAxis", setRotationAxis, getRotationAxis, xmlelement, loading); 179 179 XMLPortParam(WorldEntity, "rotationRate", setRotationRate, getRotationRate, xmlelement, loading); -
code/branches/core/src/orxonox/objects/WorldEntity.h
r852 r853 57 57 { this->node_->roll(angle, relativeTo); } 58 58 59 inline void setYaw(const Degree &angle) 60 { this->node_->yaw(angle, Ogre::Node::TS_LOCAL); } 61 inline void setPitch(const Degree &angle) 62 { this->node_->pitch(angle, Ogre::Node::TS_LOCAL); } 63 inline void setRoll(const Degree &angle) 64 { this->node_->roll(angle, Ogre::Node::TS_LOCAL); } 65 59 66 inline const Ogre::Quaternion& getOrientation() 60 67 { return this->node_->getOrientation(); } … … 75 82 { this->node_->setScale(x, y, z); } 76 83 inline void setScale(Real scale) 84 { this->node_->setScale(scale, scale, scale); } 85 inline void setTotalScale(Real scale) 77 86 { this->node_->setScale(scale, scale, scale); } 78 87 inline const Vector3& getScale(void) const
Note: See TracChangeset
for help on using the changeset viewer.