nicholas-maltbie / FallingParkour

Multiplayer racing game made with Unity
MIT License
18 stars 3 forks source link

Pushable Objects Local Player #47

Open nicholas-maltbie opened 3 years ago

nicholas-maltbie commented 3 years ago

When pushing an object, network delay can cause the push to take a longer period of time. Two changes are needed to mitigate this:

  1. Don't allow a player to push the same object many times, possibly add a short delay so a player cannot push an object multiple times before it actually moves.
  2. Locally "hack" the object's position to move when pushed by a player allowed for faster feedback (even if it gets reverted back, it's much more natural to see an object you hit move and not have to wait a few seconds).