0 votes
asked in VRIK by
I have a sitting VRIK rigged character, such that the pelvis bone is connected to a transform on the chair. The character's back is straight and chest pushed forward causing the characters pose to look unrealistic. What I would like to happen is that the characters posture is a bit more slouching/relaxed once the VR camera drops down from the maximal view height of the user. How do i achieve this using the VRIK properties?

1 Answer

0 votes
answered by (16.3k points)

Hey,

The results of VRIK depend on the pose it starts with. So can modify the results somewhat by adjusting the character pose. If you have animation playing on the character, it needs to be done by script in LateUpdate:

public VRIK ik;

    public Vector3 spineOffset;

    public Vector3 chestOffset;

    public Vector3 neckOffset;

    

    void LateUpdate()

    {

        ik.references.spine.localRotation = Quaternion.Euler(spineOffset) * ik.references.spine.localRotation;

        if (ik.references.chest != null)

        {

            ik.references.chest.localRotation = Quaternion.Euler(chestOffset) * ik.references.chest.localRotation;

        }

        if (ik.references.neck != null)

        {

            ik.references.neck.localRotation = Quaternion.Euler(neckOffset) * ik.references.neck.localRotation;

        }

    }

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.

...