From 152b7402ea3de8e2affd1e02e7ea9ea5d4106425 Mon Sep 17 00:00:00 2001 From: Andrew B Date: Mon, 27 Jan 2020 21:46:04 +0300 Subject: [PATCH] addition to previous commit: fixing of Unity sample (JointType.SpineNaval -> JointType.SpineNavel) --- K4AdotNet.Samples.Unity/Assets/Scripts/CharacterAnimator.cs | 4 ++-- K4AdotNet.Samples.Unity/Assets/Scripts/SkeletonRenderer.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/K4AdotNet.Samples.Unity/Assets/Scripts/CharacterAnimator.cs b/K4AdotNet.Samples.Unity/Assets/Scripts/CharacterAnimator.cs index f01775c..44fb4a0 100644 --- a/K4AdotNet.Samples.Unity/Assets/Scripts/CharacterAnimator.cs +++ b/K4AdotNet.Samples.Unity/Assets/Scripts/CharacterAnimator.cs @@ -95,7 +95,7 @@ private static HumanBodyBones MapKinectJoint(JointType joint) switch (joint) { case JointType.Pelvis: return HumanBodyBones.Hips; - case JointType.SpineNaval: return HumanBodyBones.Spine; + case JointType.SpineNavel: return HumanBodyBones.Spine; case JointType.SpineChest: return HumanBodyBones.Chest; case JointType.Neck: return HumanBodyBones.Neck; case JointType.Head: return HumanBodyBones.Head; @@ -129,7 +129,7 @@ private static Quaternion GetKinectTPoseOrientationInverse(JointType jointType) switch (jointType) { case JointType.Pelvis: - case JointType.SpineNaval: + case JointType.SpineNavel: case JointType.SpineChest: case JointType.Neck: case JointType.Head: diff --git a/K4AdotNet.Samples.Unity/Assets/Scripts/SkeletonRenderer.cs b/K4AdotNet.Samples.Unity/Assets/Scripts/SkeletonRenderer.cs index 75e3410..95a5ef4 100644 --- a/K4AdotNet.Samples.Unity/Assets/Scripts/SkeletonRenderer.cs +++ b/K4AdotNet.Samples.Unity/Assets/Scripts/SkeletonRenderer.cs @@ -103,7 +103,7 @@ private void CreateBones() var bones = new List(); // Spine - CreateBones(bones, JointType.SpineNaval, JointType.SpineChest, JointType.Neck, JointType.Head); + CreateBones(bones, JointType.SpineNavel, JointType.SpineChest, JointType.Neck, JointType.Head); // Right arm CreateBones(bones, JointType.ClavicleRight, JointType.ShoulderRight, JointType.ElbowRight, JointType.WristRight); // Left arm