Hi, I've come up with a problem.
In the server, I need to set the positions of players when I get their positions from the clients, which is fine, but if the object has a joint connected to it and I use setTranslation(Vec2 position, float angle), the game freezes. I could destroy and recreate the body every time the server gets the player's position from the client, but this seems like a waste of CPU and might cause other bugs as well.
Is there a better way?
Thanks,
r_bewick
In the server, I need to set the positions of players when I get their positions from the clients, which is fine, but if the object has a joint connected to it and I use setTranslation(Vec2 position, float angle), the game freezes. I could destroy and recreate the body every time the server gets the player's position from the client, but this seems like a waste of CPU and might cause other bugs as well.
Is there a better way?
Thanks,
r_bewick