Open TheSonOfThomp opened 4 years ago
toEuler only supports one decode mode... and it's hard coded to only use that one order...
@d3x0r I understand that toEuler
only supports the one order. My concern is that the order isn't consistent with the default order in setFromEuler
.
It's simple to work around sure, but I feel like the API design should be internally consistent
I've noticed that the order the Euler angles are applied does not match between
quaternion.toEuler
andquaternion.setFromEuler
. For example, this code should do nothing, however it ends up rotating the body. When I pass the optionalorder
param tosetFromEuler
as 'YZX' I achieve the desired result (i.e. no rotation in this case).It seems like the default
order
does not match betweentoEuler
andsetFromEuler
Also, small request: can we have
toEuler
return the vector instead of passing a variable in by reference?