Sharing ownership between two players
Les mainteneurs répondent en général sous 2 jours
@NoelStephensUnity y travaille déjà.
Depuis le 10/5/2023.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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!
- Langage dominant
- C#
- Étoiles
- 2.3k
- Forks
- 464
- Merge moyen
- 2 j 18 h
- PR mergées (30 j)
- 15
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Unity-Technologies/com.unity.netcode.gameobjects
-
NetworkList changes made since the last tick are applied twice on a newly synchronized clientOuvertestat:awaiting-triage stat:reply-needed type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
Unity-Technologies/com.unity.netcode.gameobjects#4179 ·
Les mainteneurs répondent en général sous 2 jours
-
Dedicated server: mixed-authority NetworkObject is removed from NetworkTransformUpdate, so its owner-authoritative NetworkTransform never updates server-sidePeut-être pris @NoelStephensUnity l’a pris il y a 10 jours. Ouvertestat:imported stat:reply-needed type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 68/100
Unity-Technologies/com.unity.netcode.gameobjects#4159 · 5 commentaires ·
Les mainteneurs répondent en général sous 2 jours
-
NetworkAnimator: Conditional triggered transitions to Exit node log false errorsPeut-être pris @NoelStephensUnity l’a pris il y a 195 jours. Ouvertestat:awaiting-response stat:awaiting-triage stat:Investigating type:bug
Unity-Technologies/com.unity.netcode.gameobjects#3912 · 7 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 2 jours
-
Tracking type:feature-2.x
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Unity-Technologies/com.unity.netcode.gameobjects#3870 · 5 commentaires ·
Les mainteneurs répondent en général sous 2 jours
-
Please error, or at least warn, when a managed type is included in INetworkSerializeByMemcpyOuverteTracking type:feature
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Unity-Technologies/com.unity.netcode.gameobjects#3830 · 7 commentaires ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de Unity-Technologies/com.unity.netcode.gameobjects
Issues similaires
-
[C#]:主页联网更新的提示投稿横幅指向错误Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
PCL-Community/PCL-CE#3652 ·
Les mainteneurs répondent en général sous 1 jour
-
area:frontend bug FE P3
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
klasolsson81/jobbliggaren#2010 ·
Les mainteneurs répondent en général sous 1 jour
-
[aw] Upgrade availableOuverteagentic-workflows untriaged
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
area: homeblaze type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
RicoSuter/Namotion.Interceptor#630 ·
Les mainteneurs répondent en général sous 1 jour
-
Akka.Hosting enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100