- Timestamp:
- Oct 21, 2008, 4:56:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/worldentities/MovableEntity.cc
r1968 r1989 44 44 RegisterObject(MovableEntity); 45 45 46 this->velocity_ = Vector3::ZERO; 47 this->acceleration_ = Vector3::ZERO; 48 this->rotationAxis_ = Vector3::ZERO; 49 this->rotationRate_ = 0; 50 this->momentum_ = 0; 51 52 this->overwrite_position_ = Vector3::ZERO; 53 this->overwrite_orientation_ = Quaternion::IDENTITY; 54 46 55 this->registerVariables(); 47 56 } … … 57 66 XMLPortParamTemplate(MovableEntity, "velocity", setVelocity, getVelocity, xmlelement, mode, const Vector3&); 58 67 XMLPortParamTemplate(MovableEntity, "rotationaxis", setRotationAxis, getRotationAxis, xmlelement, mode, const Vector3&); 59 XMLPortParamTemplate(MovableEntity, "rotationrate", setRotationRate, getRotationRate, xmlelement, mode, const Radian&);68 XMLPortParamTemplate(MovableEntity, "rotationrate", setRotationRate, getRotationRate, xmlelement, mode, const Degree&); 60 69 } 61 70 … … 139 148 } 140 149 141 void MovableEntity::yaw(const Radian& angle, Ogre::Node::TransformSpace relativeTo)150 void MovableEntity::yaw(const Degree& angle, Ogre::Node::TransformSpace relativeTo) 142 151 { 143 152 this->node_->yaw(angle, relativeTo); … … 145 154 } 146 155 147 void MovableEntity::pitch(const Radian& angle, Ogre::Node::TransformSpace relativeTo)156 void MovableEntity::pitch(const Degree& angle, Ogre::Node::TransformSpace relativeTo) 148 157 { 149 158 this->node_->pitch(angle, relativeTo); … … 151 160 } 152 161 153 void MovableEntity::roll(const Radian& angle, Ogre::Node::TransformSpace relativeTo)162 void MovableEntity::roll(const Degree& angle, Ogre::Node::TransformSpace relativeTo) 154 163 { 155 164 this->node_->roll(angle, relativeTo);
Note: See TracChangeset
for help on using the changeset viewer.