Changeset 2974 for code/branches/netp2/src/orxonox/objects/worldentities
- Timestamp:
- May 13, 2009, 1:58:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp2/src/orxonox/objects/worldentities/ControllableEntity.cc
r2964 r2974 334 334 { 335 335 MobileEntity::tick(dt); 336 // COUT(0) << this->common_angular_velocity_ << endl; 336 337 337 338 if (this->isActive()) … … 346 347 this->common_linear_velocity_ = this->getVelocity(); 347 348 this->common_angular_velocity_ = this->getAngularVelocity(); 349 COUT(0) << "tick " << this->common_angular_velocity_ << endl; 348 350 // } 349 351 // else if (this->bHasLocalController_) … … 379 381 registerVariable(this->common_linear_velocity_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerLinearVelocity), true); 380 382 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); 382 384 383 385 registerVariable(this->playerID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID)); … … 407 409 if (!this->bHasLocalController_) 408 410 MobileEntity::setAngularVelocity(this->common_angular_velocity_); 411 COUT(0) << "process " << this->common_angular_velocity_ << endl; 409 412 } 410 413 … … 509 512 MobileEntity::setAngularVelocity(velocity); 510 513 this->common_angular_velocity_ = this->getAngularVelocity(); 514 COUT(0) << "setav " << this->common_angular_velocity_ << endl; 511 515 // ++this->server_overwrite_; 512 516 // } … … 527 531 this->common_linear_velocity_ = this->getVelocity(); 528 532 this->common_angular_velocity_ = this->getAngularVelocity(); 533 COUT(0) << "setwt " << this->common_angular_velocity_ << endl; 529 534 // } 530 535 // else if (this->bHasLocalController_)
Note: See TracChangeset
for help on using the changeset viewer.