From 11dc9367ff7c7bab7d4cd0eb0b21609bc74b600d Mon Sep 17 00:00:00 2001 From: yangxiao Date: Tue, 29 Apr 2014 18:19:30 -0700 Subject: [PATCH] wrong rotation --- cocos/2d/CCNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCNode.cpp b/cocos/2d/CCNode.cpp index 1a02e61db1..bd327cf99d 100644 --- a/cocos/2d/CCNode.cpp +++ b/cocos/2d/CCNode.cpp @@ -1378,7 +1378,7 @@ const Matrix& Node::getNodeToParentTransform() const } if(_rotationX) { Matrix rotX; - Matrix::createRotationY(CC_DEGREES_TO_RADIANS(_rotationX), &rotX); + Matrix::createRotationX(CC_DEGREES_TO_RADIANS(_rotationX), &rotX); _transform = _transform * rotX; }