Merge branch 'main' of http://gitlab.passervr.com/passer/unity/humanoidcontrol4_free
This commit is contained in:
commit
78a3d2f38a
@ -27,13 +27,13 @@ namespace Passer.Humanoid {
|
||||
|
||||
#if hFACE
|
||||
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);
|
||||
}
|
||||
else {
|
||||
#endif
|
||||
if (Application.isPlaying && headTarget.humanoid.primaryTarget == HumanoidControl.PrimaryTarget.Hips) {
|
||||
if (Application.isPlaying && headTarget.humanoid.primaryTarget == HumanoidControl.PrimaryTarget.Hips) {
|
||||
UpdateNeckRotation(headTarget);
|
||||
UpdateNeckPositionFromHips(headTarget);
|
||||
UpdateHeadPositionFromNeck(headTarget);
|
||||
|
Loading…
x
Reference in New Issue
Block a user