[Orxonox-commit 372] r2974 - branches/netp2/src/orxonox/objects/worldentities
scheusso at orxonox.net
scheusso at orxonox.net
Wed May 13 13:58:44 CEST 2009
Author: scheusso
Date: 2009-05-13 13:58:44 +0200 (Wed, 13 May 2009)
New Revision: 2974
Modified:
branches/netp2/src/orxonox/objects/worldentities/ControllableEntity.cc
Log:
debug output for reto
Modified: branches/netp2/src/orxonox/objects/worldentities/ControllableEntity.cc
===================================================================
--- branches/netp2/src/orxonox/objects/worldentities/ControllableEntity.cc 2009-05-12 19:24:58 UTC (rev 2973)
+++ branches/netp2/src/orxonox/objects/worldentities/ControllableEntity.cc 2009-05-13 11:58:44 UTC (rev 2974)
@@ -333,6 +333,7 @@
void ControllableEntity::tick(float dt)
{
MobileEntity::tick(dt);
+// COUT(0) << this->common_angular_velocity_ << endl;
if (this->isActive())
{
@@ -345,6 +346,7 @@
this->common_orientation_ = this->getOrientation();
this->common_linear_velocity_ = this->getVelocity();
this->common_angular_velocity_ = this->getAngularVelocity();
+ COUT(0) << "tick " << this->common_angular_velocity_ << endl;
// }
// else if (this->bHasLocalController_)
// {
@@ -378,7 +380,7 @@
registerVariable(this->common_position_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition), true);
registerVariable(this->common_linear_velocity_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerLinearVelocity), true);
registerVariable(this->common_orientation_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation), true);
- registerVariable(this->common_angular_velocity_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerAngularVelocity), true);
+// registerVariable(this->common_angular_velocity_, variableDirection::serverMaster, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerAngularVelocity), true);
registerVariable(this->playerID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedplayerID));
registerVariable(this->gtinfoID_, variableDirection::toclient, new NetworkCallback<ControllableEntity>(this, &ControllableEntity::networkcallback_changedgtinfoID));
@@ -406,6 +408,7 @@
{
if (!this->bHasLocalController_)
MobileEntity::setAngularVelocity(this->common_angular_velocity_);
+ COUT(0) << "process " << this->common_angular_velocity_ << endl;
}
void ControllableEntity::processOverwrite()
@@ -508,6 +511,7 @@
// {
MobileEntity::setAngularVelocity(velocity);
this->common_angular_velocity_ = this->getAngularVelocity();
+ COUT(0) << "setav " << this->common_angular_velocity_ << endl;
// ++this->server_overwrite_;
// }
// else if (this->bHasLocalController_)
@@ -526,6 +530,7 @@
this->common_orientation_ = this->getOrientation();
this->common_linear_velocity_ = this->getVelocity();
this->common_angular_velocity_ = this->getAngularVelocity();
+ COUT(0) << "setwt " << this->common_angular_velocity_ << endl;
// }
// else if (this->bHasLocalController_)
// {
More information about the Orxonox-commit
mailing list