mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-21 09:31:20 -08:00
Better reset and initial values
owo
This commit is contained in:
1 parent
34174b442f
commit
21eff5e1ba
4 files changed
+18
-13
No files matched your search
@@ -91,15 +91,15 @@ public class AutoBone {
|
||||
// Load waist configs
|
||||
staticConfigs.put("Head", server.config.getFloat("body.headShift", HumanSkeletonWithWaist.HEAD_SHIFT_DEFAULT));
|
||||
staticConfigs.put("Neck", server.config.getFloat("body.neckLength", HumanSkeletonWithWaist.NECK_LENGTH_DEFAULT));
|
||||
configs.put("Waist", server.config.getFloat("body.waistDistance", 0.85f));
|
||||
configs.put("Waist", server.config.getFloat("body.waistDistance", 0.64f));
|
||||
|
||||
if(server.config.getBoolean("autobone.forceChestTracker", false) || (frame != null && TrackerUtils.findTrackerForBodyPosition(frame, TrackerPosition.CHEST) != null) || TrackerUtils.findTrackerForBodyPosition(server.getAllTrackers(), TrackerPosition.CHEST) != null) {
|
||||
// If force enabled or has a chest tracker
|
||||
configs.put("Chest", server.config.getFloat("body.chestDistance", 0.42f));
|
||||
configs.put("Chest", server.config.getFloat("body.chestDistance", 0.32f));
|
||||
} else {
|
||||
// Otherwise, make sure it's not used
|
||||
configs.remove("Chest");
|
||||
staticConfigs.put("Chest", server.config.getFloat("body.chestDistance", 0.42f));
|
||||
staticConfigs.put("Chest", server.config.getFloat("body.chestDistance", 0.32f));
|
||||
}
|
||||
|
||||
// Load leg configs
|
||||
|
||||
@@ -23,12 +23,17 @@ public class SimpleSkeleton {
|
||||
protected final TransformNode neckNode = new TransformNode("Neck", false);
|
||||
protected final TransformNode waistNode = new TransformNode("Waist", false);
|
||||
protected final TransformNode chestNode = new TransformNode("Chest", false);
|
||||
protected final TransformNode hipNode = new TransformNode("Hip", false);
|
||||
|
||||
protected float chestDistance = 0.42f;
|
||||
protected float chestDistance = 0.32f;
|
||||
/**
|
||||
* Distance from eyes to waist
|
||||
*/
|
||||
protected float waistDistance = 0.85f;
|
||||
protected float waistDistance = 0.64f;
|
||||
/**
|
||||
* Distance from waist to hip
|
||||
*/
|
||||
protected float hipDistance = 0.05f;
|
||||
/**
|
||||
* Distance from eyes to the base of the neck
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user