Root rotation for all axes

This commit is contained in:
SDraw 2022-11-05 18:22:59 +03:00
parent 88767e8a52
commit b7d1078270
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
6 changed files with 54 additions and 18 deletions

View file

@ -214,10 +214,10 @@ namespace ml_lme
}
}
void OnRootAngleChange(float p_angle)
void OnRootAngleChange(Vector3 p_angle)
{
if(m_leapTrackingRoot != null)
m_leapTrackingRoot.transform.localRotation = Quaternion.Euler(p_angle, 0f, 0f);
m_leapTrackingRoot.transform.localRotation = Quaternion.Euler(p_angle);
}
void OnHeadAttachChange(bool p_state)
@ -255,7 +255,7 @@ namespace ml_lme
}
}
m_leapTrackingRoot.transform.localRotation = Quaternion.Euler(Settings.RootAngle, 0f, 0f);
m_leapTrackingRoot.transform.localRotation = Quaternion.Euler(Settings.RootAngle);
}
}