fix transform anchor

This commit is contained in:
faiface 2016-12-03 01:50:14 +01:00
parent 63c9ab68e2
commit c1e2968d2a
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func (t Transform) Mat3() mgl32.Mat3 {
mat = mat.Mul3(mgl32.Translate2D(float32(t.pos.X()), float32(t.pos.Y())))
mat = mat.Mul3(mgl32.Rotate3DZ(float32(t.rot)))
mat = mat.Mul3(mgl32.Scale2D(float32(t.sca.X()), float32(t.sca.Y())))
mat = mat.Mul3(mgl32.Translate2D(float32(t.anc.X()), float32(t.anc.Y())))
mat = mat.Mul3(mgl32.Translate2D(float32(-t.anc.X()), float32(-t.anc.Y())))
return mat
}