Do I have to copy Input data into a [Network] property?

Options

We are evaluating Fusion and as I work through the documentation and look at the examples I see various Input paradigms used with no clear explanation in the docs as to what they are and which one, if any are still valid. For instance, the docs, Hello Fusion and Application Loop examples just call GetInput() and use it. However the Karts example calls GetInput and puts it into a [Network] property, with the comment that this needs to be done so other clients can predict input. It seemed implied that the former would send the inputs down to the other clients anyway (So they can simulate in the correct ticks) but the latter suggests we need to explicitly do this.

So, which one is the preferred paradigm?

Thanks

Answers

  • emotitron
    emotitron ✭✭✭
    Options

    The Fusion input system is only for Input Authority -> Server. Inputs are not propagated to all clients, so if you want to share inputs with others (typically to allow for more accurate prediction of proxies), you will want to bake the inputs of interest into the state using [Networked] values yes.