Make NetworkTransform’s 0.001 GetChanged threshold configurable #905
DavidSanek
started this conversation in
Feature Request
Replies: 1 comment
-
This is reasonable and makes sense. It's no risk to anything to add in a threshold; I'm thinking this can be in the 4.6.10 release (no promises on that). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Fish-Net team! 👋
We’ve hit a precision snag with
NetworkTransform
:GetChanged()
each axis is compared to a hard-coded0.001f
delta.https://github.com/FirstGearGames/FishNet/blob/main/Assets/FishNet/Runtime/Generated/Component/NetworkTransform/NetworkTransform.cs#L1839
Propsal
Expose the threshold as a configurable field:
Replacing the four
0.001f
literals withpositionEpsilon
lets projects dial in the precision they need without touching package code.Alternatively, dropping sealed or making the comparer virtual would let us subclass and handle edge cases ourselves.
Thanks for the awesome networking stack!
David
unity-networking.mp4
Beta Was this translation helpful? Give feedback.
All reactions