wurstscript / WurstStdlib2

WurstScript Standard Library Version 2
Apache License 2.0
55 stars 53 forks source link

mat3 and quat fixes for effect orientation #299

Closed GetLocalPlayer closed 5 years ago

GetLocalPlayer commented 5 years ago

Related to #297 1.29 patch brought the effect-orientation control to the game. It used Euler-angles in order X-Y-Z which was quite confusing according to names Yaw-Pitch-Roll. In the latest patches this was changed. Now, Yaw defines rotation around Z axis and Roll defines rotation around X axis and the rotation order (according to Yaw-Pitch-Roll) has become Z-Y-X. This PR fixes the issues in the standard library which appeared with the game's changes. Thanks to Blizzard for non-mentioning these changes in the patch notes so it took me a while to notice the problem.

Tests succeeded: 22/22
>> All tests have passed successfully!
Tests succeeded: 35/35
>> All tests have passed successfully!

ezgif com-optimize(5)

Frotty commented 5 years ago

Cool, thanks a lot :) 👍