NetworkView Position Sync

Author: Aubrey Falconer (Robur)

Description
These scripts demonstrate the implementation of interpolation, extrapolation, and optimized player physics in the position synchronization logic of non-authoratative networked games. These scripts preserve network packet timestamps for correct interpolation calculations.

PlayerLocal.js
Attach this script to an authoritative "local" player GameObject after you have instantiated and provided it with a NetworkView.

PlayerRemote.js
Attach this script to a non-authoritative "remote" player GameObject after you have instantiated it and provided it with a NetworkView. (It is highly recommended that you handle player object instantiation manually using custom RPCs and Network.AllocateViewID - as Network.Instantiate suffers from bugs that will bite you sooner or later).