- Home /
Any way to sync transform
Hey guys How's it goin ! I'm Making a 2d multiplayer platformer where there's the movement with rigidbody2d.velocity and rotation on the y axis with transform.rotate. But Can't sync both the rotation and movement because of the syncing in NetworkTransform.
Is There ANY way to fix this ? Thanks in advance and have a good day !
Answer by JuliusdeBlaaij · Aug 27, 2017 at 10:39 AM
@JPTheKnight Could you elaborate on "because of the syncing in NetworkTransform"? If it is the player object you are trying to move it must have a network identity, also in the Network manager add the player in the "Player prefab" slot. Let me know if this helped. (I`m using 3d so things might be different.)
Ok I think my answer wasn't clear enough, sorry. So What I want to do is Sync the transform and the rigidbody2D because I'm moving the player using rb2D.velocity and rotating it using transform.rotate on the y axis.
Or if there's a way to rotate the player using the rb2D it would work.
And Thanks For Your Answer !