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; }