mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix: #2674 - Quaternion Compression LargestAbsoluteComponentIndex largest absolute was accidentally initialized with largest, instead of largest absolute
This commit is contained in:
parent
c5080d1ab3
commit
2aa791a726
@ -18,8 +18,8 @@ public static int LargestAbsoluteComponentIndex(Vector4 value, out float largest
|
|||||||
// convert to abs
|
// convert to abs
|
||||||
Vector4 abs = new Vector4(Mathf.Abs(value.x), Mathf.Abs(value.y), Mathf.Abs(value.z), Mathf.Abs(value.w));
|
Vector4 abs = new Vector4(Mathf.Abs(value.x), Mathf.Abs(value.y), Mathf.Abs(value.z), Mathf.Abs(value.w));
|
||||||
|
|
||||||
// set largest to first value (x)
|
// set largest to first abs (x)
|
||||||
largest = value.x;
|
largest = abs.x;
|
||||||
withoutLargest = new Vector3(value.y, value.z, value.w);
|
withoutLargest = new Vector3(value.y, value.z, value.w);
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user