Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Floating Rigidbody on client

Discussion in 'Netcode for GameObjects' started by joseph114591452, Jul 6, 2023.

  1. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    Unity: 2022.3.4f1
    NGO: 1.5.1
    Multiplayer Samples Utilities: 1.5.1
    ParrelSync: 1.5.2

    I have an issue where a NetworkRigidbody is floating on the client.



    The floating object is a player and has the following components: Rigidbody, CapsuleCollider, NetworkObject, ClientNetworkTransform, NetworkRigidbody, and IsOwner related movement scripts.

    Is this a common issue?
    Should I write a client side script to move the Rigidbody down until its grounded?
    Why isn't the position's y value correctly synced?
    Here is the ClientNetworkTransform settings:
    upload_2023-7-6_15-36-40.png
     
  2. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    Update, disabling Interpolate on the ClientNetworkTransform fixes the floating but it's too jittery.
     
  3. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
  4. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    426
    Hey @josephan2 , are you using NetworkRigidbody too? If not, you should
     
  5. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    Yes I am using NetworkRigidbody.