Merge pull request #94 from Louka3000/main

Changed default body proportions
This commit is contained in:
Eiren Rain authored and GitHub committed 2021-12-16 18:15:42 +03:00
commit 4da54f6dec
3 files changed
+13 -13

No files matched your search

@@ -28,15 +28,15 @@ public class SimpleSkeleton {
/**
* Distance from shoulders to chest
*/
protected float chestDistance = 0.35f;
protected float chestDistance = 0.32f;
/**
* Distance from hip to waist
*/
protected float waistDistance = 0.1f;
protected float waistDistance = 0.05f;
/**
* Distance from shoulder to hip
*/
protected float torsoLength = 0.7f;
protected float torsoLength = 0.64f;
/**
* Distance from eyes to the base of the neck
*/
@@ -61,11 +61,11 @@ public class SimpleSkeleton {
/**
* Length from hip to knees
*/
protected float kneeHeight = 0.42f;
protected float kneeHeight = 0.43f;
/**
* Distance from hip to ankle
*/
protected float legsLength = 0.84f;
protected float legsLength = 0.86f;
protected final HashMap<String, TransformNode> nodes = new HashMap<String, TransformNode>();
@@ -53,11 +53,11 @@ public class HumanSkeletonWithLegs extends HumanSkeletonWithWaist {
/**
* Length from hip to knees
*/
protected float kneeHeight = 0.42f;
protected float kneeHeight = 0.43f;
/**
* Distance from hip to ankle
*/
protected float legsLength = 0.84f;
protected float legsLength = 0.86f;
protected float footLength = FOOT_LENGTH_DEFAULT;
protected float footOffset = 0f; //horizontal forward/backwards translation feet offset for avatars with bent knees
@@ -171,7 +171,7 @@ public class HumanSkeletonWithLegs extends HumanSkeletonWithWaist {
}
else //if floor level is incorrect
{
setSkeletonConfig(joint, 0.84f);
setSkeletonConfig(joint, 0.86f);
}
resetSkeletonConfig("Knee height");
break;
@@ -44,15 +44,15 @@ public class HumanSkeletonWithWaist extends HumanSkeleton {
/**
* Distance from shoulders to chest
*/
protected float chestDistance = 0.35f;
protected float chestDistance = 0.32f;
/**
* Distance from hip to waist
*/
protected float waistDistance = 0.1f;
protected float waistDistance = 0.05f;
/**
* Distance from shoulder to hip
*/
protected float torsoLength = 0.7f;
protected float torsoLength = 0.64f;
/**
* Distance from eyes to hip, defines reported
* tracker position, if you want to move resulting
@@ -146,14 +146,14 @@ public class HumanSkeletonWithWaist extends HumanSkeleton {
}
else// if floor level is incorrect
{
setSkeletonConfig(joint, 0.7f);
setSkeletonConfig(joint, 0.64f);
}
break;
case "Chest": //Chest is roughly half of the upper body (shoulders to chest)
setSkeletonConfig(joint, torsoLength / 2.0f);
break;
case "Waist": // waist length is from hips to waist
setSkeletonConfig(joint, 0.1f);
setSkeletonConfig(joint, 0.05f);
break;
case "Hip offset":
setSkeletonConfig(joint, 0.0f);