Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2019, 1:40:10 PM (6 years ago)
Author:
jeromela
Message:

Ball bewegt sich in zwei Richtungen

Location:
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc

    r12294 r12305  
    141141            // Attach the ball to the centerpoint and set the parameters as specified in the centerpoint, the ball is attached to.
    142142            this->center_->attach(this->ball_);
    143             this->ball_->setPosition(0,0,50);
     143            this->ball_->setPosition(0,0,50); //Startposition
    144144            this->ball_->setFieldDimension(this->center_->getFieldDimension());
    145145            this->ball_->setSpeed(0);
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.cc

    r12294 r12305  
    210210            else // If the balls current velocity is zero, the speed is set in a random direction.
    211211                velocity.x = this->speed_ * sgn(rnd(-1,1));
     212            //velocity.y = this->speed_;
     213            velocity.z = this->speed_;
    212214
    213215            this->setVelocity(velocity);
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxCenterpoint.cc

    r12277 r12305  
    5858        this->width_ = 200;
    5959        this->height_ = 120;
    60         this->ballspeed_ = 60;
     60        this->ballspeed_ = 100;
    6161        this->ballaccfactor_ = 1.0;
    6262        this->batspeed_ = 60;
Note: See TracChangeset for help on using the changeset viewer.