0 votes
asked in VRIK by
I am Japanese

Please understand bad English

I am currently developing a united online game.

Among them, I want to set up VRIK, but OVRCameraRig is in the hierarchy window, and model data with VRIK is in the file "resource" for managing network objects.

Can I set the VRIK in the same hierarchy?

Is it not possible to use script to determine the target selection for head, left hand and right hand?

1 Answer

0 votes
answered by (19.4k points)
Hey,

For the remote instance of the character there is no OVRCameraRig. The OVRCameraRig belongs to the other player so you can't use it's head and hand targets for the remote character.

On the remote end you'll need to create empty gameobjects to serve as head and hand target proxies, then sync the positions and rotations of the local head and hand targets to those proxies using OnPhotonSerializeView() (if using Photon).

Then just assign those proxies as IK targets of the remote character's VRIK.

Best,

Pärtel
commented by

Hi Pärtel,

Do you have an example file for this that uses Photon? Thank you.

J Moritz

commented by (19.4k points)
Hey,

No, but basically for the remote instance you would need to create empty gameobjects to serve as IK target proxies, assign them as VRIK's targets for the head and hands.

Then use OnPhotonSerializeView() to sync the positions and rotations of the proxies to the IK targets of the local player.

Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.

...