Search Unity

Help with joint rotation when flipping a game object

Discussion in 'VR' started by DigitalAdam, Sep 9, 2021.

  1. DigitalAdam

    DigitalAdam

    Joined:
    Jul 18, 2007
    Posts:
    1,209
    Hey everyone. I'm putting together a full VR body game. The full body mesh's hand joints postion and rotation line up with joints from a hand only rig. The transforms are correct with the left hand. As soon as I scale the right hand in the -x axis, like mirroring the same hand rig, they get messed up. Here's some code that I'm using:
    BodyRightThumb1.localRotation = ColliderRightThumb1.localRotation;

    How would I fix this? I'm not a programmer, so if you could provide the code here I'll give it a go.

    Thanks!

    problem.gif