Mellotte93 / vanderlin

Automatically exported from code.google.com/p/vanderlin
0 stars 0 forks source link

ofxBox2dCircle::getRotation() has discontinuities #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ofxBox2dCircle::getRotation() has an abrupt jump once per rotation as an object 
rotates through 360°. As a workaround, I did this:

float getRotation() {
  if(body != NULL) {
    return ofRadToDeg(body->GetAngle());
  }
  else
    return 0.0;
}

Thanks,

Danny Rosenberg
META/DMA

Original issue reported on code.google.com by cdanny...@gmail.com on 12 Jul 2010 at 5:12