Revision: 7198
http://playerstage.svn.sourceforge.net/playerstage/?rev=7198&view=rev
Author: natepak
Date: 2008-12-10 17:23:10 +0000 (Wed, 10 Dec 2008)
Log Message:
-----------
Fixed rotating static bodies
Modified Paths:
--------------
code/gazebo/trunk/server/physics/Body.cc
Modified: code/gazebo/trunk/server/physics/Body.cc
===================================================================
--- code/gazebo/trunk/server/physics/Body.cc 2008-12-08 23:35:52 UTC (rev
7197)
+++ code/gazebo/trunk/server/physics/Body.cc 2008-12-10 17:23:10 UTC (rev
7198)
@@ -298,16 +298,17 @@
std::map<std::string, Geom*>::iterator iter;
- //this->SetPosition(this->staticPose.pos);
- //this->SetRotation(this->staticPose.rot);
+ this->SetPosition(this->staticPose.pos);
+ this->SetRotation(this->staticPose.rot);
- for (iter = this->geoms.begin(); iter != this->geoms.end(); iter++)
+ // This loop doesn't work properly when rotating objects
+ /*for (iter = this->geoms.begin(); iter != this->geoms.end(); iter++)
{
//newPose = (*iter)->GetPose() - this->staticPose;
newPose = iter->second->GetPose() - oldPose;
newPose += this->staticPose;
iter->second->SetPose(newPose);
- }
+ }*/
}
else
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit