Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 1, 2009, 12:37:16 AM (15 years ago)
Author:
landauf
Message:

Extended PongAI:

  • Random prediction errors depend on the vertical ball-speed
  • Fixed a bug: Position correction was also affected by the reaction delay. Now it works instantly.
  • Added oscillation avoidance system (the already implemented hysteresis avoidance system failed at low framerates)

Additionally fixed auto-respawn in Pong Gametype.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/gametypes/Pong.cc

    r2872 r2885  
    5353        this->bat_[0] = 0;
    5454        this->bat_[1] = 0;
    55 
    56         this->bForceSpawn_ = true;
    5755
    5856        this->starttimer_.setTimer(1.0, false, this, createExecutor(createFunctor(&Pong::startBall)));
     
    111109        this->starttimer_.startTimer();
    112110
     111
     112        bool temp = this->bForceSpawn_;
     113        this->bForceSpawn_ = true;
     114
    113115        Deathmatch::start();
     116
     117        this->bForceSpawn_ = temp;
    114118    }
    115119
Note: See TracChangeset for help on using the changeset viewer.