origin
eharetea

ORIGIN() returns the value needed to translate an objects value to another.

Return value needed to translate.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 03:27 PM

you can specify T[XYZ] R[XYZ] S[XYZ]


/ -> echo `origin("/obj/model2","/obj/model","TY")`

-1.40698

/ -> echo `origin("/obj/model2","/obj/model","SY")`

1


//where model2's scale is set to 2 in x,y, and z

/ -> echo `origin("/obj/model2","/obj/model","SY")`

0.5

//where model's scale is set to 2 in x,y, and z

/ -> echo `origin("/obj/model2","/obj/model","SY")`

2