sergey.pozhidaev Posted October 22, 2014 Posted October 22, 2014 hi, can you add translation and scalation core functions like rotation for matrix?
necris Posted October 27, 2014 Posted October 27, 2014 Hello, SergeyNo, I'm afraid we won't add these variables in the nearest future.You can take the last column from input matrix for translation and main diagonal for scalation matrix.Please check the usage of swizzling for matrix here: https://developer.unigine.com/en/docs/1.0/scripting/language/data_types#swizzling
unclebob Posted November 5, 2014 Posted November 5, 2014 Hello there! Let me put my 5 cents: you can use decomposeTransform and composeTransform functions for rotation/translation/scale. This functions are available both in C++ and UnigineScript.
sergey.pozhidaev Posted November 6, 2014 Author Posted November 6, 2014 i am using this, but i want comfortable core one-string function like rotation
ulf.schroeter Posted November 6, 2014 Posted November 6, 2014 You can always build your own small utility class for conveniance
unclebob Posted November 10, 2014 Posted November 10, 2014 Also, you can use mat4::setTranslate, mat4::setRotate, mat4::setScale methods in C++ API.
sergey.pozhidaev Posted November 14, 2014 Author Posted November 14, 2014 very nice, but i need mat4::getTranslate, mat4::getRotate, mat4::getScale :D
silent Posted November 14, 2014 Posted November 14, 2014 I will add this suggestion to our internal bug tracker. However, can't promise anything at this moment, sorry. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
silent Posted November 14, 2014 Posted November 14, 2014 Good news! New methods will be available with the next SDK update: mat4::getTranslate() mat4::getRotate() mat4::getScale() How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts