Skip to content

Reset last snapshot in NetworkTransformUnreliable - #4122

Open
Vindicatory wants to merge 1 commit into
MirrorNetworking:masterfrom
Vindicatory:master
Open

Reset last snapshot in NetworkTransformUnreliable#4122
Vindicatory wants to merge 1 commit into
MirrorNetworking:masterfrom
Vindicatory:master

Conversation

@Vindicatory

Copy link
Copy Markdown

When authority is changed, lastSnapshot will continue to hold an outdated value
This can cause change detection to incorrectly omit a position component after authority changes

e.g. my case:

  1. Client A has authority over object and moves it to Y=2
  2. The object is released and falls to Y=0 under another authority
  3. The object is picked up by Client A again and moved back to Y=2
  4. Since lastSnapshot still contains Y=2, PosY is not marked as changed
  5. Other clients won't obtain correct Y value

@MrGadget1024

Copy link
Copy Markdown
Collaborator

Try NetworkTransformHybrid, the successor to NTUnreliable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants