Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 13, 2009, 1:58:44 PM (16 years ago)
Author:
scheusso
Message:

debug output for reto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp2/src/orxonox/objects/worldentities/ControllableEntity.cc

    r2964 r2974  
    334334    {
    335335        MobileEntity::tick(dt);
     336//         COUT(0) << this->common_angular_velocity_ << endl;
    336337
    337338        if (this->isActive())
     
    346347                    this->common_linear_velocity_ = this->getVelocity();
    347348                    this->common_angular_velocity_ = this->getAngularVelocity();
     349                    COUT(0) << "tick " << this->common_angular_velocity_ << endl;
    348350//                 }
    349351//                 else if (this->bHasLocalController_)
     
    379381        registerVariable(this->common_linear_velocity_,  variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerLinearVelocity), true);
    380382        registerVariable(this->common_orientation_,      variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation), true);
    381         registerVariable(this->common_angular_velocity_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerAngularVelocity), true);
     383//         registerVariable(this->common_angular_velocity_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerAngularVelocity), true);
    382384
    383385        registerVariable(this->playerID_,                variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID));
     
    407409        if (!this->bHasLocalController_)
    408410            MobileEntity::setAngularVelocity(this->common_angular_velocity_);
     411        COUT(0) << "process " << this->common_angular_velocity_ << endl;
    409412    }
    410413
     
    509512            MobileEntity::setAngularVelocity(velocity);
    510513            this->common_angular_velocity_ = this->getAngularVelocity();
     514            COUT(0) << "setav " << this->common_angular_velocity_ << endl;
    511515//             ++this->server_overwrite_;
    512516//         }
     
    527531            this->common_linear_velocity_ = this->getVelocity();
    528532            this->common_angular_velocity_ = this->getAngularVelocity();
     533            COUT(0) << "setwt " << this->common_angular_velocity_ << endl;
    529534//         }
    530535//         else if (this->bHasLocalController_)
Note: See TracChangeset for help on using the changeset viewer.