Search Unity

Difference between HumanTrait.GetMuscleDefaultMin and HumanLimit.min

Discussion in 'Animation' started by libra34567, Feb 19, 2018.

  1. libra34567

    libra34567

    Joined:
    Apr 5, 2014
    Posts:
    62
    So I'm trying to procedurally generate animation by controlling muscle movement or rotating bones. Of course, i will need to clamp it between the max and min rotation limit defined by humanoid rig.

    The thing is when i tried to access that limit by HumanLimit.min/max/axislength all they give me is a bunch of zeros. But then i tried to access the limit using HumanTrait.GetMuscleDefaultMin/Max. It gives me the correct value that i wants.

    I wonder what's the difference between those two method of access limits, and why the first method didn't work?

    Any suggestions would be appreciated!
    Thanks in advance.
     
  2. umutozkan

    umutozkan

    Joined:
    Oct 30, 2015
    Posts:
    406
    Hello I stumbled upon your question while I was looking for a way to get HumanLimit values myself. No matter I do I only got zeroes too. Did you happen to find an answer to your question?
     
  3. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
    I have the same issue with all the zeros!

    But the difference I think is that HumanTrait.GetMuscleDefaultMin/Max is giving you the default min and max and Human.Limit.min and max can be modified.