- Timestamp:
- May 19, 2011, 1:47:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceboundaries2/src/orxonox/worldentities/SpaceBoundaries.cc
r8468 r8506 273 273 /* Checke, ob das Pawn innerhalb des nächsten Ticks, das erlaubte Gebiet verlassen würde. 274 274 Falls ja: Spicke es zurück. */ 275 if( currentDistance + normalSpeed * dt > this->maxDistance_ - 10 ) // -10: "security measure"275 if( currentDistance + normalSpeed * dt > this->maxDistance_ - 20 ) // -20: "security measure" 276 276 { 277 277 float dampingFactor = 0.5; … … 284 284 item->setAcceleration(acceleration * dampingFactor); 285 285 item->setVelocity(velocity * dampingFactor); 286 287 item->setPosition( item->getPosition() - normal * 10 ); 286 288 } 287 289 }
Note: See TracChangeset
for help on using the changeset viewer.