Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question How do i setup fishnet multiplayer rigidbody?

Discussion in 'Multiplayer' started by Flow_Animation, Feb 16, 2024.

  1. Flow_Animation

    Flow_Animation

    Joined:
    Mar 28, 2023
    Posts:
    5
    for me no matter what i do only the host can effect the cube and the other players when they see the cube it first takes forever to find somewhere it likes and then bounces and desyncs the entire game! and before i grab the cube it floats?
     
  2. QuitsDoubloon

    QuitsDoubloon

    Joined:
    Dec 23, 2018
    Posts:
    6
    I see you linked this thread from FishNet Networking's Discord.
    Doing physics in multiplayer in general is a very complex topic. I'd recommend first researching it online.
    You can approach the problem in many ways, but the current newest and most developed for FishNet is PredictionV2. First you're going to need to manually install Fishnets newest version directly from their github. Then enable it. Then follow the instructions for using prediction on Fishnet's manual site, however word of warning V2 doesn't have a tutorial yet so you're going to have to figure most things out for yourself.
     
  3. Punfish

    Punfish

    Joined:
    Dec 7, 2014
    Posts:
    442
    I agree with Quits in giving Prediction 2 a try, that will solve your issues. It is however still in experimental and as mentioned we've yet to create a tutorial for it.

    We are aiming to get it out of experimental soon though.
     
  4. Flow_Animation

    Flow_Animation

    Joined:
    Mar 28, 2023
    Posts:
    5
    Great sorry for late response how do i do that btw i have already upgraded to latest github version.
     
  5. WinterboltGames

    WinterboltGames

    Joined:
    Jul 27, 2016
    Posts:
    267
    I created a YouTube tutorial about Prediction V2. If anyone is interested, here it is.

     
  6. Flow_Animation

    Flow_Animation

    Joined:
    Mar 28, 2023
    Posts:
    5
    why do i need input actions?
     
  7. Punfish

    Punfish

    Joined:
    Dec 7, 2014
    Posts:
    442
    You could use the old input system.