Skip to content

Commit 865f0a6

Browse files
committed
Small fix on the MatrixStack rotation function
1 parent 98930de commit 865f0a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/components/MatrixStack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ var MatrixStack = {
135135

136136
currentMatrix[0] = m0 * ct + m2 * st;
137137
currentMatrix[1] = m1 * ct + m3 * st;
138-
currentMatrix[2] = m2 * -st + m2 * ct;
139-
currentMatrix[3] = m3 * -st + m3 * ct;
138+
currentMatrix[2] = m0 * -st + m2 * ct;
139+
currentMatrix[3] = m1 * -st + m3 * ct;
140140

141141
return this;
142142
}

0 commit comments

Comments
 (0)