david.warford Posted January 2, 2021 Share Posted January 2, 2021 So, normally what I would do is simply multiply the vector by the matrix, doing that in Unigine appears to produce incorrect results Vec3 a = p->getTransform().getTranslate() + p->getTransform().getAxisZ(); // = {-13.0793009, 36.1701622, -14.3145294} Vec3 b = ((Vec3(0,0,1)) * p->getTransform()); // = {-0.228823692, 0.184904218, -0.955745995} It seems to me that these should be equal, but they are not. what am I doing wrong? 3 Link to comment
david.warford Posted January 2, 2021 Author Share Posted January 2, 2021 Answering my own question, it needs to be M * V not V * M Link to comment
Recommended Posts