Dynad
Member
|
Obj Params scale
Hey,
I want to get the scale from a object param thats placed in the World Editor. Now it only returns the Sum of all the scales but i want the x/y/z separated, is this possible or can this be added?
There is obj.matrix but this gives me Vecs only e.g matrix.x is a Vec not a Flt. Is there a way to convert that to a Flt?
Thnx,
~Dynad
update 1:
I got it using: size = Vec(obj.matrix.x.sum(), obj.matrix.y.sum(), obj.matrix.z.sum());
Dunno if its the correct way but it works
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 02-16-2011 09:06 PM by Dynad.)
|
|
02-16-2011 08:49 PM |
|
Esenthel
Administrator
|
RE: Obj Params scale
obj.matrix.x.length()
|
|
02-16-2011 11:18 PM |
|