![]() |
Quat class operator* bug? - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: Bugs and Issues (https://forum.tyflow.com/forum-3.html) +--- Thread: Quat class operator* bug? (/thread-3720.html) |
Quat class operator* bug? - wbk - 06-12-2023 Tracking down some strange behaviour in script code that did similar to: Quat a = ...; Quat b = ...; Quat c = a*b; It compiled so I assumed the Quat class had a functioning quaternion multiply operator*. However it appears either this is not the case or you have a bug in the code there, as whatever it does it doesn't seem to be a functioning quaternion multiply? Maybe it's simply multiplying the components instead? Either way I have coded around it by implementing a proper multiply for quaternions, but if its not a bug maybe a note in the script API would prevent others from falling in the same trap... RE: Quat class operator* bug? - tyFlow - 06-12-2023 Thanks! It's indeed a bug that will be fixed in the next build (the multiply operation was returning a Quat of [x,y,x,w] instead of [x,y,z,w]). |