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

Object transform syncing without a networktranform or anything.

$
0
0
So this is my object, it's a player:

View attachment 170378

As you can see there's no NetworkTransform atteched on it, but yet his position is changed on the server and in all the clientes, and i don't want that, because he is supose to move only when the variable destination is diferente of his current position, like on the script bellow.

Code (CSharp):
  1. void Update()
  2.     {
  3.         if (Vector2.Distance(transform.position, _destination) > stopDistance)
  4.         {...
Object transform syncing without a networktranform or anything.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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