From 1d3762c3be6c307bc7095c428201c639aab5dfbe Mon Sep 17 00:00:00 2001 From: dsc Date: Thu, 23 Jun 2011 14:59:13 -0700 Subject: [PATCH] Fixes rotation issues. --- src/game/unit/QQActor.mm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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(); -- 1.7.0.4