In the pybox2d manual it states the following:
pybox2d uses radians for angles. The body rotation is stored in radians and may grow unbounded. Consider normalizing the angle of your bodies if the magnitude of the angle becomes too large (use b2Body.SetAngle).
However, when I try to implement something to 'normalize' the angle I get the following error:
AttributeError: 'b2Body' object has no attribute 'SetAngle'
Code snippet:
def update_outputs(self):
# This is necessary to prevent the angle
# from getting too large or small
self.body.SetAngle(self.body.angle % 2*pi)