Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Character Controller is never grounded for Clients

Discussion in 'Netcode for GameObjects' started by EpicFlan, Oct 5, 2022.

  1. EpicFlan

    EpicFlan

    Joined:
    Jan 31, 2020
    Posts:
    6
    I'm seeing a fairly annoying but seemingly simple issue. I have a Character Controller for my players, and I run checks for isGrounded to check if they can do certain actions. For the host, this always returns as expected (in the air it's false, on the ground it's true), but for the client it always returns false, no matter what they're doing, even if they're standing still. I ran debugging in the update for the client, and can confirm that it never returns true at any point. The Character Controller Movement is being handled server side, where the desired input from the Client is passed in via ServerRpc, and then this is kept in sync via Network Transform.

    Is there a reason for the Character Controller not playing nice over Netcode?