#Help removing lightyear player prediction

4 messages · Page 1 of 1 (latest)

glacial torrent
#

I'm working on a prototype MOBA with gameplay inspired by Brawl Stars.

I want the game to be fully interpolated from the server, including the player itself (thus the player have input latency equal to 1 RTT).

I'm just starting up with lightyear "simple_box" example, which I got working, but now I am trying to remove the prediction on the player, and I can't get it working.

I modified the player entity on the server to include :

Replicate::to_clients(NetworkTarget::All),
PredictionTarget::to_clients(NetworkTarget::None),
InterpolationTarget::to_clients(NetworkTarget::All),

From my server I can see the confirmed player. From the client I can also see the confirmed player, but there is no interpolated player.

What did I miss ? I can give more info as needed but I don't really know what to show. Thanks

#

okay I was missing an InterpolationManager component on my client

#

dang it's really not that smooth, am I doing the correct approach for a MOBA ?

naive adder
#

Yes that should be the correct approach; you can try to increase the replication frequency to make it smoother. I've also some unsmoothness with interpolation that I'm trying to fix