Multiplayer Rotation and Animation help

My apologies about the previous post, I was not able to see a significant portion of the code on mobile. The reason it did not work was because OtherModel is a variable which contains the reference to an object, and is not an object itself. Therefore, you do not need to do this.OtherModel or this.app.OtherModel. You can just do OtherModel.setLocalEulerAngles(0, data.rot, 0);.

Ok I will try it. It works but it does the same as rotate

1 Like

Have you tried this on two different devices entirely? It might be because of a slight lag in the server. Glitch is not known to be the fastest solution.

I will try

1 Like

Nope does not work same problem

@Coder if I understand correctly, the issue is that you are not seeing a smooth rotation when another player rotates, and it’s only visible after a certain period of time, right? I don’t use glitch very often myself, it is rather slow in practise, so this might be because of that. If this is a major issue in your game, you might want to consider using a faster solution such as Photon.

Thanks for all your help I will try it out.

1 Like

Hi @DevilZ
I have connect to my Proton server but I have no idea how to send position an what not.

Please go through the README of the github repo I have sent you, it details all that. This topic will possibly be of assistance as well, as will the starter kit(do not fork this, use it for studying the structure of the project only).

1 Like

Ok @DevilZ I don’t understand

photon.raiseEvent(1, this.entity.getLocalPosition());
photon.raiseEvent(2, this.entity.getLocalPosition());

What is the different of the numbers do? I know they signify the Eventcode but what is that?

Don’t worry about It figured it out btw.

1 Like

Just to help others with the same problem who may consult this topic in the future, the event code is a unique identifier for every event sent.