0 votes
asked in VRIK by (120 points)
Hello,

I made a multiplayer game with oculus quest for my friends and my children and I would like to integrate VRIK for more realism, but I would like to know if it is possible to automatically adjust the size of the character according to the size of the wearer of the vr headphones?

thank you

1 Answer

0 votes
answered ago by (20.2k points)

Hey,

Yes, you can just scale the root of the avatar, VRIK has no problem with that.

This is how I usually do it:

float sizeF = (ik.solver.spine.headTarget.position.y - ik.references.root.position.y) / (ik.references.head.position.y - ik.references.root.position.y);
ik.references.root.localScale *= sizeF;

Best,

Pärtel 

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.

...