Beispiel #1
0
    public bool TryGetRotationAroundZ(out float angle)
    {
        if (isRollAroundZ)
        {
            angle = rollAroundZ;
            return(true);
        }
        Quaternion quat;

        if (TryGetRotation(out quat))
        {
            angle = MyoPoseManager.NormalizeAngle(quat.eulerAngles.z);
            return(true);
        }
        angle = 0;
        return(false);
    }
Beispiel #2
0
 private void Awake()
 {
     velocityRollingStats.Init(StoredSamples);
     Instance = this;
 }