Skip to content

Commit

Permalink
addition to previous commit: fixing of Unity sample (JointType.SpineN…
Browse files Browse the repository at this point in the history
…aval -> JointType.SpineNavel)
  • Loading branch information
bibigone committed Jan 27, 2020
1 parent 51a9c06 commit 152b740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions K4AdotNet.Samples.Unity/Assets/Scripts/CharacterAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion K4AdotNet.Samples.Unity/Assets/Scripts/SkeletonRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private void CreateBones()
var bones = new List<Bone>();

// 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
Expand Down

0 comments on commit 152b740

Please sign in to comment.