About Store Forum Documentation Contact



Post Reply 
non-uniform scaling in world
Author Message
b1s Offline
Member

Post: #1
non-uniform scaling in world
on what object types this is supposed to work?
I'm not seeing any results in item,static or kinematic.
07-12-2010 01:38 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: non-uniform scaling in world
currently it works only for Decals, maybe Particles
07-12-2010 01:41 PM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #3
RE: non-uniform scaling in world
how can i pick that value up for extended statics?
i need to draw a box according to that non uniform scale value.
just cant figure out how to get the min,max or w,h,d
07-12-2010 01:43 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: non-uniform scaling in world
please check ObjParams::matrixFinal()
and get the length of x,y,z vectors
07-12-2010 01:46 PM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #5
RE: non-uniform scaling in world
something like this?
im not getting anything with this...

w=obj.matrixFinal().x.length();
h=obj.matrixFinal().y.length();
d=obj.matrixFinal().z.length();
box.set(w,d,h,pos());
07-12-2010 01:56 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #6
RE: non-uniform scaling in world
what do you mean you don't get anything with this?

what are the values for w,h,d ?

matrix is the position, orientation and scale of the object
07-12-2010 02:16 PM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #7
RE: non-uniform scaling in world
it did work.. forum just crashed or something so couldn't answer.. thanks
07-12-2010 04:28 PM
Find all posts by this user Quote this message in a reply
Post Reply