Syncing Query...

Manhiem
Manhiem
edited October 2020 in Photon Bolt
Hey Developers,

I am facing a query on syncing the rotation of the player. The movement is succesfully being synced.
I have a state called MyState and i and trying to achieve it as:

state.SetTransforms(MyState.PlayerTransform.Rotation, transform.rotation);
OR
state.SetTransforms(MyState.PlayerTransform.Rotation, GetComponent<RigidBody>().rotation);

Both of them are throwing errors as UnityEngine cannot convert from UnityEngine.transform to UnityEngine.Quaternion and UnityENgine cannot convert BoltNetwork.transform to UNityENgine,Quaternion.

Can the developers help me in this case by providing the syntax or the code that i have to use...

Thanks in Advance :)))

Comments