Sharing ownership between two players
Maintainer antworten meist innerhalb von 2 Tagen
@NoelStephensUnity arbeitet bereits daran.
Seit 10.5.2023.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
This is a follow up question after #2512, where @NoelStephensUnity helped me a lot with making a solid and smooth movement of an object by a player.
But since multiplayer games are about cooperation, carrying stuff together is one of the essentials features in our game.
I'd like to make it that when one player tries to carry a large thing, it struggles, whereas two can do it easier.
The problem is, they both should be able to move the object they are carrying. And they are client-side authoritative.
So I can't just change the ownership of the object, because another player is going to have a delay.
The only idea I have is to let them simulate locally object's state, ignoring the correct one from the server. And once they drop the object, it switched back to updates from the server. I think this should work, at least, I can't tell why not.
But I think I don't understand the solution @NoelStephensUnity provided me with to 100%. I see that it disables server updates and lets client simulate rigidbody, but it also handles the jitter problem by making sure that the authority is completely switched, and I just don't understand how I can make it more generic, so I could just toggle it when I need it.
Do you think it's going to work or I am completely wrong about the approach? Maybe it can be achieved easily?
If so, could you please you elaborate on your solution? As I said, I'd like to make it generic.
Thanks a lot!
- Vorherrschende Sprache
- C#
- Sterne
- 2.3k
- Forks
- 464
- Ø Merge
- 4 T. 4 Std.
- Gemergte PRs (30 T.)
- 18
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Unity-Technologies/com.unity.netcode.gameobjects
-
stat:awaiting-triage stat:import stat:reply-needed type:bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
Unity-Technologies/com.unity.netcode.gameobjects#4179 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
NetworkAnimator: Conditional triggered transitions to Exit node log false errorsEvtl. vergeben @NoelStephensUnity hat das vor 198 Tagen übernommen. Offenstat:awaiting-response stat:awaiting-triage stat:Investigating type:bug
Unity-Technologies/com.unity.netcode.gameobjects#3912 · 7 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Tracking type:feature-2.x
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Unity-Technologies/com.unity.netcode.gameobjects#3870 · 5 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Tracking type:feature
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Unity-Technologies/com.unity.netcode.gameobjects#3830 · 7 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
stat:awaiting-response stat:imported type:bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
Unity-Technologies/com.unity.netcode.gameobjects#3802 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in Unity-Technologies/com.unity.netcode.gameobjects
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
stryker-mutator/stryker-net#3892 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
MobiFlight/MobiFlight-Connector#3419 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Kryptos-FR/MarkView.Avalonia#105 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[辞書]Offen提案 辞書
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
microsoft/fluentui-blazor#5410 ·
Maintainer antworten meist innerhalb von 1 Tag