Merge pull request #6518 from super626/newmath

wrong rotation
This commit is contained in:
minggo 2014-04-30 09:44:10 +08:00
commit 8283ab9435
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;
}