Hey unity forum,
Ive got a small problem. I am currently developing a small 2D tank game. I have started to implement the basic multiplayer using the high level API. At the moment i have my Player prefab with a NetworkTransform Component on it. It all works and the Position for the tanks is the same on all the clients. A tank ofc. also has a barrel. So i now need to make sure that the rotation of the barrel is the same for all the clients. So i put another NetworkTransform Component on the Barrel, a Child object of the Player Tank. But the rotation is never “send to the other clients”. I am unsure on how to fix this.
I unfortunately cannot post any code at the moment, but the rotation of the barrel is calculated to look at the mouseposition and this is inside a if(isLocalPlayer). It works that only the actual players barrel looks at the mouse, but the barrel never rotates for other players.
I hope it kinda of made sense, and i have no idea on how to solve this. The Settings for the NetworkTransform of the Barrel are the standart ones.