The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Unity XR Interaction Toolkit and Photon 2

jamesmunro2
2020-08-07 18:48:36

I have been trying to use XR Toolkit and Photon 2 Networking to create a multiplayer experience. When Player A grabs an object it looks fine. Player B, watching that interaction, sees the object that Player A grabbed fighting against gravity/kinestic. I have tried multiple ways to fix this but have not succeeded. Any ideas on a solution for this? Thank you in advance.

Comments

MarshallVisions
2021-03-26 23:20:16

Here's my script for networked interactables:

public class NetworkedInteractable : MonoBehaviourPunCallbacks, IPunOwnershipCallbacks
{
internal XRBaseInteractable m_InteractableBase;
internal Player owner;
internal Rigidbody rigidBody;
internal XRController interactingController;
private bool isBeingHeld;
public UnityEvent RpcActivate;
public UnityEvent RpcDeactivate;
public UnityEvent RpcSelect;
public bool useGravity = true;
public UnityEvent RpcDeselect;

}

Back to top