I'm making a 2D co-op game, with puzzles that involve moving physics objects.
I'm using the Unity 5 engine, and the UNET tools
One of the weapons the player has is a weapon that imitates the behaviour of the Half-Life 2 Gravity Gun;
- You right click in a certain direction
- It makes a raycast in that direction, with a limit distance
- If it finds a gameobject with a collider and a certain tag, it stores it as "grabbedObject"
- It sets the grabbedObject position making it float in front of the player
- You right click again and you drop it.
That works perfectly on Server side, and client side you can see it working. But when you try to do it as a client, it's not changing the grabbedObject position on the server, and it goes back to the original position as soon as you drop it