06-12-2023, 07:08 PM
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...
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...