wrong rotation

This commit is contained in:
yangxiao 2014-04-29 18:19:30 -07:00
parent 3237d7b23d
commit 11dc9367ff
1 changed files with 1 additions and 1 deletions

View File

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