(2018-03-15, 18:13)Roland Melkert Wrote:mulAB with a matrix using a vector in its constructor acts like a translate as it is basically an alias, but it can be very confusing.Code:local matrix=ldc.matrix()
matrix:setTranslate(center:getInverted())
matrix:mulAB(rotation)
matrix:mulTranslateAB(center)
Indeed, I thought about why using mulAB once with a matrix once with a vector, but I didn't dare to ask
I just stumbled over the center:getInverted(). In your manual getInverted is for matrices. What does it do with the vector?