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/controllers/PongAI.h

    r2872 r2885  
    5656            void calculateRandomOffset();
    5757            void calculateBallEndPosition();
    58             void move(char direction);
     58            void move(char direction, bool bUseDelay);
    5959            void delayedMove();
    6060
     
    6868            std::list<std::pair<Timer<PongAI>*, char> > reactionTimers_;
    6969            char movement_;
     70            char oldMove_;
     71            bool bOscillationAvoidanceActive_;
    7072    };
    7173}
Note: See TracChangeset for help on using the changeset viewer.