b1s
Member
|
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 |
|
Esenthel
Administrator
|
RE: non-uniform scaling in world
currently it works only for Decals, maybe Particles
|
|
07-12-2010 01:41 PM |
|
b1s
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
b1s
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
b1s
Member
|
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 |
|