[Orxonox-commit 4028] r8702 - code/branches/presentation/src/orxonox/worldentities
landauf at orxonox.net
landauf at orxonox.net
Sat Jun 11 13:47:06 CEST 2011
Author: landauf
Date: 2011-06-11 13:47:05 +0200 (Sat, 11 Jun 2011)
New Revision: 8702
Modified:
code/branches/presentation/src/orxonox/worldentities/MobileEntity.h
Log:
fixed radian <-> degree conversion bug
Modified: code/branches/presentation/src/orxonox/worldentities/MobileEntity.h
===================================================================
--- code/branches/presentation/src/orxonox/worldentities/MobileEntity.h 2011-06-09 21:40:54 UTC (rev 8701)
+++ code/branches/presentation/src/orxonox/worldentities/MobileEntity.h 2011-06-11 11:47:05 UTC (rev 8702)
@@ -88,7 +88,7 @@
inline void setRotationRate(Degree rate)
{ this->setAngularVelocity(this->getAngularVelocity().normalisedCopy() * rate.valueRadians()); }
inline Degree getRotationRate() const
- { return Degree(this->getAngularVelocity().length()); }
+ { return Radian(this->getAngularVelocity().length()); }
inline void setRotationAxis(const Vector3& axis)
{ this->setAngularVelocity(axis * this->getAngularVelocity().length()); }
More information about the Orxonox-commit
mailing list