Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

SendInterval and position sync

$
0
0
Hello! I am trying to sync transform position manually based on UNET tutorial. I removed lerp function and made sendInterval = 0.5 but object movement was really smooth, and deltaTime was like ~0.004 so seems Update() of NetworkBehaviour don't care about sendInverval option. So how I can use sendInterval? I want to reduce my network sends to 60 per 1 second instead of doing sends on every update!

Code (CSharp):
  1.  
  2. [NetworkSettings(sendInterval = 0.5f)]
  3. public class Player_SyncPosition :...
SendInterval and position sync

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>