Changeset 3084 for code/trunk/src/orxonox/objects/worldentities/PongBat.cc
- Timestamp:
- May 26, 2009, 9:20:57 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/PongBat.cc
r2839 r3084 54 54 { 55 55 registerVariable(this->speed_); 56 registerVariable(this-> speed_);57 registerVariable(this-> speed_);56 registerVariable(this->fieldHeight_); 57 registerVariable(this->length_); 58 58 } 59 59 … … 91 91 position.z = -this->fieldHeight_ / 2 + this->fieldHeight_ * this->length_ / 2; 92 92 if (position != this->getPosition()) 93 { 93 94 this->setPosition(position); 95 this->setVelocity( Vector3::ZERO ); 96 } 94 97 } 95 98 … … 97 100 { 98 101 this->bMoveLocal_ = false; 99 this->movement_ -=value.x;102 this->movement_ = -value.x; 100 103 } 101 104
Note: See TracChangeset
for help on using the changeset viewer.