honya Posted November 5, 2012 Share Posted November 5, 2012 Hi, i try to create .world file via external script, but i cannot found how set <transform> element in <node> element. I know which values are position and scale, but i have problem with add rotation. My input are position(x,y,z), rotation(x,y,z) and scale(x,y,z). Can i get formula how combine rotation and scale? Link to comment
ulf.schroeter Posted November 5, 2012 Share Posted November 5, 2012 There are numerous tutorials of 3D matrix concatenation available on the internet e.g. http://ruthless.zath...tion-matrix.php. Also a look into UNIGINE documentation on matrix math function is helpfull. Actually your rotation and scale matrices will be combined into m00-m22 3x3 sub-matrix of UNIGINE tranformation 4x4 matrix m00 m10 m20 m30 m01 m11 m21 m31 m02 m12 m22 m32 0 0 0 1 Link to comment
honya Posted November 5, 2012 Author Share Posted November 5, 2012 Thanks you Ulf, yout suggest web side help me a lot, so it working right for me now. Link to comment
Recommended Posts