Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 7, 2009, 2:02:15 AM (15 years ago)
Author:
landauf
Message:

Enhanced Pong gametype: It's now possible to accelerate the ball in the y direction by giving him a spin with a moving bat. Bots also support the new feature. Have fun :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/pong/Pong.cc

    r5893 r5898  
    7676            this->ball_->setFieldDimension(this->center_->getFieldDimension());
    7777            this->ball_->setSpeed(0);
     78            this->ball_->setAccelerationFactor(this->center_->getBallAccelerationFactor());
    7879            this->ball_->setBatLength(this->center_->getBatLength());
    7980
     
    172173            this->ball_->setPosition(Vector3::ZERO);
    173174            this->ball_->setVelocity(Vector3::ZERO);
     175            this->ball_->setAcceleration(Vector3::ZERO);
    174176            this->ball_->setSpeed(0);
    175177        }
Note: See TracChangeset for help on using the changeset viewer.