Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2011, 1:47:01 PM (13 years ago)
Author:
kmaurus
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spaceboundaries2/src/orxonox/worldentities/SpaceBoundaries.cc

    r8468 r8506  
    273273        /* Checke, ob das Pawn innerhalb des nächsten Ticks, das erlaubte Gebiet verlassen würde.
    274274           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"
    276276        {
    277277            float dampingFactor = 0.5;
     
    284284            item->setAcceleration(acceleration * dampingFactor);
    285285            item->setVelocity(velocity * dampingFactor);
     286           
     287            item->setPosition( item->getPosition() - normal * 10 );
    286288        }
    287289    }
Note: See TracChangeset for help on using the changeset viewer.