djlane
08-18-2006, 10:16 AM
Hello all, I just got a quick question. I`ve been starting to dabble with manipulating objects transformation matrix and was wondering what the scalematrix() function is for. I know I need to pass it a point three value like [-1,1,1]. which seems to build a matrix3 so writing:
mymatrix = scalematrix [-1,1,1]
-- returns:
matrix3 [-1,0,0] [0,1,0] [0,0,1] [0,0,0]
but why is that any different to just writing:
mymatrix = matrix3 [-1,0,0] [0,1,0] [0,0,1] [0,0,0]
what is scalematrix() supposed to be used for.
Cheers
Dan
mymatrix = scalematrix [-1,1,1]
-- returns:
matrix3 [-1,0,0] [0,1,0] [0,0,1] [0,0,0]
but why is that any different to just writing:
mymatrix = matrix3 [-1,0,0] [0,1,0] [0,0,1] [0,0,0]
what is scalematrix() supposed to be used for.
Cheers
Dan
