In an action game, we need a quick response on the client that when the player hits the enemy, etc. on hit, knockback(probably have root motion or with root motion source), It’s possible to predict simulated proxy or utilize GSA to implement. could anyone give me an idea?
You can apply localized FX/Physics etc and then let the server correct. In essence you’re doing client fakey. The same as you would for hit fx in a shooter (blood splatter, hit impulse → hit animation execution).
You hit an enemy and apply a local only knockback and visual fx. This will move the opponent. When the server hits it’ll apply the same effect to the authoritative proxy. Small discrepancies in the end location/rotation will be smoothed out with error correction.
If the servers hit misses it’ll definitely correct the sims position. How bad that will feel depends on how drastic your fx are. If say hitting an opponent knocks them back 10 feet. Then you’ll have a 10 foot teleport.
How polished your hit detection is will be the deciding factor… that and the latencies you allow the game to be played at.
Thx for your reply, I agree with what you said.
In Lyra, GC has handled many things like VFX, SFX, and play on hit montage, but it does not predict, I’m not sure this is an excellent way to play montage in GC, but I will experiment.