About Store Forum Documentation Contact



Post Reply 
Obj Params scale
Author Message
Dynad Offline
Member

Post: #1
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 pfft

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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Obj Params scale
obj.matrix.x.length()
02-16-2011 11:18 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #3
RE: Obj Params scale
Ah yes thnx smile

There is always evil somewhere, you just have to look for it properly.
02-16-2011 11:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply