[Orxonox-commit 507] r3062 - branches/netp3/src/orxonox/objects/worldentities
scheusso at orxonox.net
scheusso at orxonox.net
Mon May 25 17:13:41 CEST 2009
Author: scheusso
Date: 2009-05-25 17:13:41 +0200 (Mon, 25 May 2009)
New Revision: 3062
Modified:
branches/netp3/src/orxonox/objects/worldentities/PongBat.cc
Log:
pongbat fix for client (no more hanging at the edge anymore)
Modified: branches/netp3/src/orxonox/objects/worldentities/PongBat.cc
===================================================================
--- branches/netp3/src/orxonox/objects/worldentities/PongBat.cc 2009-05-25 14:09:03 UTC (rev 3061)
+++ branches/netp3/src/orxonox/objects/worldentities/PongBat.cc 2009-05-25 15:13:41 UTC (rev 3062)
@@ -90,13 +90,16 @@
if (position.z < -this->fieldHeight_ / 2 + this->fieldHeight_ * this->length_ / 2)
position.z = -this->fieldHeight_ / 2 + this->fieldHeight_ * this->length_ / 2;
if (position != this->getPosition())
+ {
this->setPosition(position);
+ this->setVelocity( Vector3::ZERO );
+ }
}
void PongBat::moveFrontBack(const Vector2& value)
{
this->bMoveLocal_ = false;
- this->movement_ -= value.x;
+ this->movement_ = -value.x;
}
void PongBat::moveRightLeft(const Vector2& value)
More information about the Orxonox-commit
mailing list