Search Unity

Updating model bone rotations manually

Discussion in 'Scripting' started by raeldor, Jul 28, 2014.

  1. raeldor

    raeldor

    Joined:
    Jul 8, 2013
    Posts:
    55
    Hi All,

    I am trying to copy bone rotations from kinect to a model by setting localRotation on the bones, but it's not looking right at all. Is there some agreed upon starting point for models (like the t-pose) that I need to reset to first before applying the transforms? If so, how to I get that information, because my model is not in the t-pose by default. I tried grabbing the local rotations in start() and inversing them up the chain, but it still doesn't look quite right.

    Thanks
    Ray