Permalink
Browse files

Since the ball is a square, we stopped rotating it visualy.

  • Loading branch information...
1 parent 47fb5e1 commit 996014dd970054138bb11cc11352abf958471162 @pjvds pjvds committed Apr 5, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 Classes/iPongLayer.mm
View
@@ -164,7 +164,10 @@ - (void)tick:(ccTime) dt {
if(sprite != NULL) {
sprite.position = ccp(b->GetPosition().x * PTM_RATIO,
b->GetPosition().y * PTM_RATIO);
- sprite.rotation = -1 * CC_RADIANS_TO_DEGREES(b->GetAngle());
+
+ // Do not update visual angle
+ // Since we have a squal ball.
+ // sprite.rotation = -1 * CC_RADIANS_TO_DEGREES(b->GetAngle());
}
}
}

0 comments on commit 996014d

Please sign in to comment.