This commit is contained in:
Pascal Serrarens 2023-11-27 15:33:00 +01:00
commit 78a3d2f38a

View File

@ -27,13 +27,13 @@ namespace Passer.Humanoid {
#if hFACE #if hFACE
if (headTarget.neck.target.confidence.rotation < 0.2F && headTarget.head.target.confidence.rotation < 0.2F && if (headTarget.neck.target.confidence.rotation < 0.2F && headTarget.head.target.confidence.rotation < 0.2F &&
headTarget.face.leftEye.target.confidence.rotation > 0.2F) { headTarget.face.leftEye.target.confidence.rotation > 0.2F && headTarget.headAnimator.headAnimation == true) {
UpdateHeadBonesFromGazeDirection(headTarget); UpdateHeadBonesFromGazeDirection(headTarget);
} }
else { else {
#endif #endif
if (Application.isPlaying && headTarget.humanoid.primaryTarget == HumanoidControl.PrimaryTarget.Hips) { if (Application.isPlaying && headTarget.humanoid.primaryTarget == HumanoidControl.PrimaryTarget.Hips) {
UpdateNeckRotation(headTarget); UpdateNeckRotation(headTarget);
UpdateNeckPositionFromHips(headTarget); UpdateNeckPositionFromHips(headTarget);
UpdateHeadPositionFromNeck(headTarget); UpdateHeadPositionFromNeck(headTarget);