From: dsc Date: Thu, 23 Jun 2011 21:59:13 +0000 (-0700) Subject: Fixes rotation issues. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=1d3762c3be6c307bc7095c428201c639aab5dfbe;p=tanks-ios.git Fixes rotation issues. --- diff --git a/src/game/unit/QQActor.mm b/src/game/unit/QQActor.mm index e05f2c3..569c0e9 100644 --- a/src/game/unit/QQActor.mm +++ b/src/game/unit/QQActor.mm @@ -104,7 +104,7 @@ } - (void) updateShapeX:(float)x y:(float)y rotation:(float)r { [self updateShapeX:x y:y]; - self.shape.rotation = r; + self.shape.rotation = -1 * CC_RADIANS_TO_DEGREES(r); } - (void) updateShape { b2Transform trans = self.body->GetTransform();