Changeset 12336 for code/branches/OrxoBlox_FS19/src
- Timestamp:
- May 2, 2019, 4:32:19 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12335 r12336 143 143 // Attach the ball to the centerpoint and set the parameters as specified in the centerpoint, the ball is attached to. 144 144 this->center_->attach(this->ball_); 145 this->ball_->setPosition(0, 0, 50);145 this->ball_->setPosition(0, 0, 40); 146 146 this->ball_->setFieldDimension(this->center_->getFieldDimension()); 147 147 this->ball_->setSpeed(0); … … 202 202 } 203 203 } 204 204 205 205 206 OrxoBloxShip* OrxoBlox::getPlayer() -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.cc
r12331 r12336 143 143 velocity.z = -velocity.z; 144 144 // And its position is set as to not overstep the boundary it has just crossed. 145 if (position.z > this->fieldHeight_ / 2) 146 ChatManager::message("Ball hat das Feld verlassen.Jerome"); 147 if (position.z < -this->fieldHeight_ / 2) 145 if (position.z > this->fieldHeight_ / 2){ 146 ChatManager::message("Ball hat das Feld verlassen"); 147 //TODO: ball zerstoeren 148 } 149 if (position.z < -this->fieldHeight_ / 2){ 148 150 position.z = -this->fieldHeight_ / 2; 151 152 } 149 153 150 154 this->fireEvent();
Note: See TracChangeset
for help on using the changeset viewer.