From 8a149e861f0453f4bbccf65dffa20660b0d5e304 Mon Sep 17 00:00:00 2001 From: loucass003 Date: Sun, 13 Sep 2026 16:44:55 +0200 Subject: [PATCH] Ressource pack structure example --- .../resourcepacks/core/assets/lang/en.json | 102 +++++++++ .../resourcepacks/core/data/bones/head.json | 24 ++ .../resourcepacks/core/data/bones/hip.json | 26 +++ .../core/data/bones/left_big_toe.json | 40 ++++ .../core/data/bones/left_foot.json | 33 +++ .../core/data/bones/left_hand.json | 35 +++ .../core/data/bones/left_index_distal.json | 21 ++ .../data/bones/left_index_intermediate.json | 21 ++ .../core/data/bones/left_index_proximal.json | 33 +++ .../core/data/bones/left_index_toe.json | 40 ++++ .../core/data/bones/left_little_distal.json | 21 ++ .../data/bones/left_little_intermediate.json | 21 ++ .../core/data/bones/left_little_proximal.json | 33 +++ .../core/data/bones/left_little_toe.json | 40 ++++ .../core/data/bones/left_lower_arm.json | 33 +++ .../core/data/bones/left_lower_leg.json | 40 ++++ .../core/data/bones/left_middle_distal.json | 21 ++ .../data/bones/left_middle_intermediate.json | 21 ++ .../core/data/bones/left_middle_proximal.json | 33 +++ .../core/data/bones/left_middle_toe.json | 40 ++++ .../core/data/bones/left_ring_distal.json | 21 ++ .../data/bones/left_ring_intermediate.json | 21 ++ .../core/data/bones/left_ring_proximal.json | 33 +++ .../core/data/bones/left_ring_toe.json | 40 ++++ .../core/data/bones/left_shoulder.json | 35 +++ .../core/data/bones/left_thumb_distal.json | 21 ++ .../data/bones/left_thumb_metacarpal.json | 33 +++ .../core/data/bones/left_thumb_proximal.json | 21 ++ .../core/data/bones/left_upper_arm.json | 27 +++ .../core/data/bones/left_upper_leg.json | 38 ++++ .../core/data/bones/lower_chest.json | 26 +++ .../core/data/bones/lower_waist.json | 26 +++ .../resourcepacks/core/data/bones/neck.json | 22 ++ .../core/data/bones/right_big_toe.json | 40 ++++ .../core/data/bones/right_foot.json | 33 +++ .../core/data/bones/right_hand.json | 35 +++ .../core/data/bones/right_index_distal.json | 21 ++ .../data/bones/right_index_intermediate.json | 21 ++ .../core/data/bones/right_index_proximal.json | 33 +++ .../core/data/bones/right_index_toe.json | 40 ++++ .../core/data/bones/right_little_distal.json | 21 ++ .../data/bones/right_little_intermediate.json | 21 ++ .../data/bones/right_little_proximal.json | 33 +++ .../core/data/bones/right_little_toe.json | 40 ++++ .../core/data/bones/right_lower_arm.json | 33 +++ .../core/data/bones/right_lower_leg.json | 40 ++++ .../core/data/bones/right_middle_distal.json | 21 ++ .../data/bones/right_middle_intermediate.json | 21 ++ .../data/bones/right_middle_proximal.json | 33 +++ .../core/data/bones/right_middle_toe.json | 40 ++++ .../core/data/bones/right_ring_distal.json | 21 ++ .../data/bones/right_ring_intermediate.json | 21 ++ .../core/data/bones/right_ring_proximal.json | 33 +++ .../core/data/bones/right_ring_toe.json | 40 ++++ .../core/data/bones/right_shoulder.json | 35 +++ .../core/data/bones/right_thumb_distal.json | 21 ++ .../data/bones/right_thumb_metacarpal.json | 33 +++ .../core/data/bones/right_thumb_proximal.json | 21 ++ .../core/data/bones/right_upper_arm.json | 27 +++ .../core/data/bones/right_upper_leg.json | 38 ++++ .../core/data/bones/upper_chest.json | 26 +++ .../core/data/bones/upper_waist.json | 26 +++ .../core/data/proportions/foot_length.json | 12 + .../core/data/proportions/foot_shift.json | 11 + .../core/data/proportions/hand_y.json | 12 + .../core/data/proportions/hand_z.json | 12 + .../core/data/proportions/head.json | 12 + .../core/data/proportions/hip.json | 12 + .../core/data/proportions/hips_width.json | 12 + .../core/data/proportions/lower_arm.json | 12 + .../core/data/proportions/lower_chest.json | 12 + .../core/data/proportions/lower_leg.json | 12 + .../core/data/proportions/lower_waist.json | 12 + .../core/data/proportions/neck.json | 12 + .../data/proportions/shoulders_distance.json | 12 + .../data/proportions/shoulders_width.json | 12 + .../core/data/proportions/upper_arm.json | 12 + .../core/data/proportions/upper_chest.json | 12 + .../core/data/proportions/upper_leg.json | 12 + .../core/data/proportions/upper_waist.json | 12 + .../slimevr/resourcepacks/core/manifest.json | 15 ++ .../core/schemas/v1/bone.schema.json | 208 ++++++++++++++++++ .../core/schemas/v1/common.schema.json | 70 ++++++ .../core/schemas/v1/language.schema.json | 15 ++ .../core/schemas/v1/manifest.schema.json | 72 ++++++ .../core/schemas/v1/proportion.schema.json | 73 ++++++ 86 files changed, 2578 insertions(+) create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/assets/lang/en.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/head.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/hip.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_big_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_foot.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_hand.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_arm.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_leg.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_shoulder.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_metacarpal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_arm.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_leg.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_chest.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_waist.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/neck.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_big_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_foot.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_hand.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_arm.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_leg.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_intermediate.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_toe.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_shoulder.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_distal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_metacarpal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_proximal.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_arm.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_leg.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_chest.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_waist.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_length.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_shift.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_y.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_z.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/head.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hip.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hips_width.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_arm.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_chest.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_leg.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_waist.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/neck.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_distance.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_width.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_arm.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_chest.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_leg.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_waist.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/manifest.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/bone.schema.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/common.schema.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/language.schema.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/manifest.schema.json create mode 100644 server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/proportion.schema.json diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/assets/lang/en.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/assets/lang/en.json new file mode 100644 index 000000000..fe3b61c61 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/assets/lang/en.json @@ -0,0 +1,102 @@ +{ + "$schema": "../../schemas/v1/language.schema.json", + "slimevr:pack.core.name": "SlimeVR Core Skeleton", + "slimevr:pack.core.description": "The built-in humanoid skeleton resources.", + "slimevr:bone.head": "Head", + "slimevr:bone.neck": "Neck", + "slimevr:bone.upper_chest": "Upper chest", + "slimevr:bone.lower_chest": "Lower chest", + "slimevr:bone.upper_waist": "Upper waist", + "slimevr:bone.lower_waist": "Lower waist", + "slimevr:bone.hip": "Hip", + "slimevr:bone.left_upper_leg": "Left thigh", + "slimevr:bone.right_upper_leg": "Right thigh", + "slimevr:bone.left_lower_leg": "Left ankle", + "slimevr:bone.right_lower_leg": "Right ankle", + "slimevr:bone.left_foot": "Left foot", + "slimevr:bone.right_foot": "Right foot", + "slimevr:bone.left_upper_arm": "Left upper arm", + "slimevr:bone.right_upper_arm": "Right upper arm", + "slimevr:bone.left_lower_arm": "Left lower arm", + "slimevr:bone.right_lower_arm": "Right lower arm", + "slimevr:bone.left_hand": "Left hand", + "slimevr:bone.right_hand": "Right hand", + "slimevr:bone.left_shoulder": "Left shoulder", + "slimevr:bone.right_shoulder": "Right shoulder", + "slimevr:bone.left_thumb_metacarpal": "Left thumb metacarpal", + "slimevr:bone.left_thumb_proximal": "Left thumb proximal", + "slimevr:bone.left_thumb_distal": "Left thumb distal", + "slimevr:bone.left_index_proximal": "Left index proximal", + "slimevr:bone.left_index_intermediate": "Left index intermediate", + "slimevr:bone.left_index_distal": "Left index distal", + "slimevr:bone.left_middle_proximal": "Left middle proximal", + "slimevr:bone.left_middle_intermediate": "Left middle intermediate", + "slimevr:bone.left_middle_distal": "Left middle distal", + "slimevr:bone.left_ring_proximal": "Left ring proximal", + "slimevr:bone.left_ring_intermediate": "Left ring intermediate", + "slimevr:bone.left_ring_distal": "Left ring distal", + "slimevr:bone.left_little_proximal": "Left little proximal", + "slimevr:bone.left_little_intermediate": "Left little intermediate", + "slimevr:bone.left_little_distal": "Left little distal", + "slimevr:bone.right_thumb_metacarpal": "Right thumb metacarpal", + "slimevr:bone.right_thumb_proximal": "Right thumb proximal", + "slimevr:bone.right_thumb_distal": "Right thumb distal", + "slimevr:bone.right_index_proximal": "Right index proximal", + "slimevr:bone.right_index_intermediate": "Right index intermediate", + "slimevr:bone.right_index_distal": "Right index distal", + "slimevr:bone.right_middle_proximal": "Right middle proximal", + "slimevr:bone.right_middle_intermediate": "Right middle intermediate", + "slimevr:bone.right_middle_distal": "Right middle distal", + "slimevr:bone.right_ring_proximal": "Right ring proximal", + "slimevr:bone.right_ring_intermediate": "Right ring intermediate", + "slimevr:bone.right_ring_distal": "Right ring distal", + "slimevr:bone.right_little_proximal": "Right little proximal", + "slimevr:bone.right_little_intermediate": "Right little intermediate", + "slimevr:bone.right_little_distal": "Right little distal", + "slimevr:bone.left_big_toe": "Left Big Toe", + "slimevr:bone.left_index_toe": "Left Index Toe", + "slimevr:bone.left_middle_toe": "Left Middle Toe", + "slimevr:bone.left_ring_toe": "Left Ring Toe", + "slimevr:bone.left_little_toe": "Left Little Toe", + "slimevr:bone.right_big_toe": "Right Big Toe", + "slimevr:bone.right_index_toe": "Right Index Toe", + "slimevr:bone.right_middle_toe": "Right Middle Toe", + "slimevr:bone.right_ring_toe": "Right Ring Toe", + "slimevr:bone.right_little_toe": "Right Little Toe", + "slimevr:proportion.head": "Head Shift", + "slimevr:proportion.head.description": "This is the distance from your headset to the middle of your head. To adjust it, shake your head left to right as if you're disagreeing and modify it until any movement in other trackers is negligible.", + "slimevr:proportion.neck": "Neck Length", + "slimevr:proportion.neck.description": "This is the distance from the middle of your head to the base of your neck. To adjust it, move your head up and down as if you're nodding or tilt your head to the left and right and modify it until any movement in other trackers is negligible.", + "slimevr:proportion.upper_chest": "Upper Chest Length", + "slimevr:proportion.upper_chest.description": "This is the distance from the base of your neck to the middle of your chest. To adjust it, adjust your Torso Length properly and modify it in various positions (sitting down, bending over, lying down, etc.) until your virtual spine matches with your real one.", + "slimevr:proportion.lower_chest": "Lower Chest Length", + "slimevr:proportion.lower_chest.description": "This is the distance from the middle of your chest to the middle of your spine. To adjust it, adjust your Torso Length properly and modify it in various positions (sitting down, bending over, lying down, etc.) until your virtual spine matches with your real one.", + "slimevr:proportion.upper_waist": "Upper Waist Length", + "slimevr:proportion.upper_waist.description": "This is the distance from the middle of your spine to a bit above your belly button. To adjust it, adjust your Torso Length properly and modify it in various positions (sitting down, bending over, lying down, etc.) until your virtual spine matches with your real one.", + "slimevr:proportion.lower_waist": "Lower Waist Length", + "slimevr:proportion.lower_waist.description": "This is the distance from a bit above your belly button to a bit below it. To adjust it, adjust your Torso Length properly and modify it in various positions (sitting down, bending over, lying down, etc.) until your virtual spine matches with your real one.", + "slimevr:proportion.hip": "Hip Length", + "slimevr:proportion.hip.description": "This is the distance from a bit bellow your belly button to your hips. To adjust it, set your Torso Length properly and modify it in various positions (sitting down, bending over, lying down, etc.) until your virtual spine matches your real one.", + "slimevr:proportion.hips_width": "Hips Width", + "slimevr:proportion.hips_width.description": "This is the distance between the start of your legs. To adjust it, perform a full reset with your legs straight and modify it until your virtual legs match up with your real ones horizontally.", + "slimevr:proportion.upper_leg": "Upper Leg Length", + "slimevr:proportion.upper_leg.description": "This is the distance from your hips to your knees. To adjust it, adjust your Leg Length properly and modify it until your virtual knees are at the same level as your real ones.", + "slimevr:proportion.lower_leg": "Lower Leg Length", + "slimevr:proportion.lower_leg.description": "This is the distance from your knees to your ankles. To adjust it, adjust your Leg Length properly and modify it until your virtual knees are at the same level as your real ones.", + "slimevr:proportion.foot_length": "Foot Length", + "slimevr:proportion.foot_length.description": "This is the distance from your ankles to your toes. To adjust it, tiptoe and modify it until your virtual feet stay in place.", + "slimevr:proportion.foot_shift": "Foot Shift", + "slimevr:proportion.foot_shift.description": "This value is the horizontal distance from your knee to your ankle. It accounts for your lower legs going backwards when standing up straight. To adjust it, set Foot Length to 0, perform a full reset and modify it until your virtual feet line up with the middle of your ankles.", + "slimevr:proportion.shoulders_distance": "Shoulders Distance", + "slimevr:proportion.shoulders_distance.description": "This is the vertical distance from the base of your neck to your shoulders. To adjust it, set Upper Arm Length to 0 and modify it until your virtual elbow trackers line up vertically with your real shoulders.", + "slimevr:proportion.shoulders_width": "Shoulders Width", + "slimevr:proportion.shoulders_width.description": "This is the horizontal distance from the base of your neck to your shoulders. To adjust it, set Upper Arm Length to 0 and modify it until your virtual elbow trackers line up horizontally with your real shoulders.", + "slimevr:proportion.upper_arm": "Upper Arm Length", + "slimevr:proportion.upper_arm.description": "This is the distance from your shoulders to your elbows. To adjust it, adjust Arm Length properly and modify it until your elbow trackers line up with your real elbows.", + "slimevr:proportion.lower_arm": "Lower Arm Length", + "slimevr:proportion.lower_arm.description": "This is the distance from your elbows to your wrists. To adjust it, adjust Arm Length properly and modify it until your elbow trackers line up with your real elbows.", + "slimevr:proportion.hand_y": "Hand Distance Y", + "slimevr:proportion.hand_y.description": "This is the vertical distance from your wrists to the middle of your hand. To adjust it for motion capture, adjust Arm Length properly and modify it until your hand trackers line up vertically with the middle of your hands. To adjust it for elbow tracking from your controllers, set Arm Length to 0 and modify it until your elbow trackers line up vertically with your wrists.", + "slimevr:proportion.hand_z": "Hand Distance Z", + "slimevr:proportion.hand_z.description": "This is the horizontal distance from your wrists to the middle of your hand. To adjust it for motion capture, set it to 0. To adjust it for elbow tracking from your controllers, set Arm Length to 0 and modify it until your elbow trackers line up horizontally with your wrists." +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/head.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/head.json new file mode 100644 index 000000000..f769f5c6e --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/head.json @@ -0,0 +1,24 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:head", + "nameKey": "slimevr:bone.head", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:head", + "direction": { + "x": 0, + "y": 0, + "z": 1 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:neck", + "before": [ + "slimevr:neck" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/hip.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/hip.json new file mode 100644 index 000000000..c9dc81305 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/hip.json @@ -0,0 +1,26 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:hip", + "nameKey": "slimevr:bone.hip", + "parent": "slimevr:lower_waist", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hip", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 60, + "swingDegrees": 120 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_big_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_big_toe.json new file mode 100644 index 000000000..7b5f0d0ac --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_big_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_big_toe", + "nameKey": "slimevr:bone.left_big_toe", + "parent": "slimevr:left_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0.28, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.27 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:left_index_toe", + "slimevr:left_middle_toe", + "slimevr:left_ring_toe", + "slimevr:left_little_toe", + "slimevr:left_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_foot.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_foot.json new file mode 100644 index 000000000..35b7cce73 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_foot.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_foot", + "nameKey": "slimevr:bone.left_foot", + "parent": "slimevr:left_lower_leg", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -1 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:left_lower_leg" + }, + "constraint": { + "type": "looseHinge", + "minDegrees": -60, + "maxDegrees": 90, + "allowedDeviationDegrees": 60, + "axis": { + "x": -1, + "y": 0, + "z": 0 + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_hand.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_hand.json new file mode 100644 index 000000000..deb7235f9 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_hand.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_hand", + "nameKey": "slimevr:bone.left_hand", + "parent": "slimevr:left_lower_arm", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + }, + { + "proportion": "slimevr:hand_z", + "direction": { + "x": 0, + "y": 0, + "z": -1 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:left_lower_arm" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 120, + "swingDegrees": 120 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_distal.json new file mode 100644 index 000000000..dc34f9712 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_index_distal", + "nameKey": "slimevr:bone.left_index_distal", + "parent": "slimevr:left_index_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.174685, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_intermediate.json new file mode 100644 index 000000000..c9c256774 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_index_intermediate", + "nameKey": "slimevr:bone.left_index_intermediate", + "parent": "slimevr:left_index_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.227815, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_proximal.json new file mode 100644 index 000000000..d83efe854 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_index_proximal", + "nameKey": "slimevr:bone.left_index_proximal", + "parent": "slimevr:left_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0.03, + "y": 0.05, + "z": -0.34 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.4025, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_toe.json new file mode 100644 index 000000000..4937d5f8a --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_index_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_index_toe", + "nameKey": "slimevr:bone.left_index_toe", + "parent": "slimevr:left_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0.12, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.24 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:left_middle_toe", + "slimevr:left_ring_toe", + "slimevr:left_little_toe", + "slimevr:left_big_toe", + "slimevr:left_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_distal.json new file mode 100644 index 000000000..a5fa14ec3 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_little_distal", + "nameKey": "slimevr:bone.left_little_distal", + "parent": "slimevr:left_little_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.14973, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_intermediate.json new file mode 100644 index 000000000..1051754e2 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_little_intermediate", + "nameKey": "slimevr:bone.left_little_intermediate", + "parent": "slimevr:left_little_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.19527, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_proximal.json new file mode 100644 index 000000000..dad5f3f50 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_little_proximal", + "nameKey": "slimevr:bone.left_little_proximal", + "parent": "slimevr:left_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": 0.1, + "z": 0.31 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.345, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_toe.json new file mode 100644 index 000000000..b1e711de9 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_little_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_little_toe", + "nameKey": "slimevr:bone.left_little_toe", + "parent": "slimevr:left_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": -0.26, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.18 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:left_ring_toe", + "slimevr:left_middle_toe", + "slimevr:left_index_toe", + "slimevr:left_big_toe", + "slimevr:left_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_arm.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_arm.json new file mode 100644 index 000000000..7002853ef --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_arm.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_lower_arm", + "nameKey": "slimevr:bone.left_lower_arm", + "parent": "slimevr:left_upper_arm", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:lower_arm", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:left_upper_arm" + }, + "constraint": { + "type": "looseHinge", + "minDegrees": -180, + "maxDegrees": 0, + "allowedDeviationDegrees": 40, + "axis": { + "x": -1, + "y": 0, + "z": 0 + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_leg.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_leg.json new file mode 100644 index 000000000..21dd7825a --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_lower_leg.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_lower_leg", + "nameKey": "slimevr:bone.left_lower_leg", + "parent": "slimevr:left_upper_leg", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:lower_leg", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + }, + { + "proportion": "slimevr:foot_shift", + "direction": { + "x": 0, + "y": 0, + "z": -1 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "looseHinge", + "minDegrees": -5, + "maxDegrees": 180, + "allowedDeviationDegrees": 10, + "axis": { + "x": -1, + "y": 0, + "z": 0 + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_distal.json new file mode 100644 index 000000000..b7c3f40c5 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_middle_distal", + "nameKey": "slimevr:bone.left_middle_distal", + "parent": "slimevr:left_middle_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.19964, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_intermediate.json new file mode 100644 index 000000000..ddff117b7 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_middle_intermediate", + "nameKey": "slimevr:bone.left_middle_intermediate", + "parent": "slimevr:left_middle_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.26036, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_proximal.json new file mode 100644 index 000000000..7fef08ebe --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_middle_proximal", + "nameKey": "slimevr:bone.left_middle_proximal", + "parent": "slimevr:left_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0.04, + "y": 0, + "z": -0.11 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.46, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_toe.json new file mode 100644 index 000000000..db37ba1d4 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_middle_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_middle_toe", + "nameKey": "slimevr:bone.left_middle_toe", + "parent": "slimevr:left_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.23 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:left_index_toe", + "slimevr:left_ring_toe", + "slimevr:left_little_toe", + "slimevr:left_big_toe", + "slimevr:left_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_distal.json new file mode 100644 index 000000000..65898aa24 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_ring_distal", + "nameKey": "slimevr:bone.left_ring_distal", + "parent": "slimevr:left_ring_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.174685, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_intermediate.json new file mode 100644 index 000000000..bc4210535 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_ring_intermediate", + "nameKey": "slimevr:bone.left_ring_intermediate", + "parent": "slimevr:left_ring_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.227815, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_proximal.json new file mode 100644 index 000000000..d4d470ca9 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_ring_proximal", + "nameKey": "slimevr:bone.left_ring_proximal", + "parent": "slimevr:left_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0.03, + "y": 0.03, + "z": 0.11 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.4025, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_toe.json new file mode 100644 index 000000000..11a5f9911 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_ring_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_ring_toe", + "nameKey": "slimevr:bone.left_ring_toe", + "parent": "slimevr:left_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": -0.12, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.21 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:left_middle_toe", + "slimevr:left_index_toe", + "slimevr:left_little_toe", + "slimevr:left_big_toe", + "slimevr:left_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_shoulder.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_shoulder.json new file mode 100644 index 000000000..8dba94bb3 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_shoulder.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_shoulder", + "nameKey": "slimevr:bone.left_shoulder", + "parent": "slimevr:neck", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:shoulders_distance", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + }, + { + "proportion": "slimevr:shoulders_width", + "direction": { + "x": -0.5, + "y": 0, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:upper_chest" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 0, + "swingDegrees": 30 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_distal.json new file mode 100644 index 000000000..da128cc85 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_thumb_distal", + "nameKey": "slimevr:bone.left_thumb_distal", + "parent": "slimevr:left_thumb_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0.00639448, + "y": -0.12788955, + "z": -0.08952269 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_metacarpal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_metacarpal.json new file mode 100644 index 000000000..2c870222e --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_metacarpal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_thumb_metacarpal", + "nameKey": "slimevr:bone.left_thumb_metacarpal", + "parent": "slimevr:left_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0.16, + "y": 0.3, + "z": -0.28 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0.01473382, + "y": -0.29467638, + "z": -0.20627347 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_proximal.json new file mode 100644 index 000000000..bbca6ec4e --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_thumb_proximal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_thumb_proximal", + "nameKey": "slimevr:bone.left_thumb_proximal", + "parent": "slimevr:left_thumb_metacarpal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0.00833934, + "y": -0.16678683, + "z": -0.11675078 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_arm.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_arm.json new file mode 100644 index 000000000..365e8becb --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_arm.json @@ -0,0 +1,27 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_upper_arm", + "nameKey": "slimevr:bone.left_upper_arm", + "parent": "slimevr:left_shoulder", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:upper_arm", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:left_shoulder" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 120, + "swingDegrees": 180 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_leg.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_leg.json new file mode 100644 index 000000000..270ab6d5f --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/left_upper_leg.json @@ -0,0 +1,38 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:left_upper_leg", + "nameKey": "slimevr:bone.left_upper_leg", + "parent": "slimevr:hip", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hips_width", + "direction": { + "x": -0.5, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:upper_leg", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 120, + "swingDegrees": 170 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_chest.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_chest.json new file mode 100644 index 000000000..3cfdc8e56 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_chest.json @@ -0,0 +1,26 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:lower_chest", + "nameKey": "slimevr:bone.lower_chest", + "parent": "slimevr:upper_chest", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:lower_chest", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 60, + "swingDegrees": 120 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_waist.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_waist.json new file mode 100644 index 000000000..a3bffb3b0 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/lower_waist.json @@ -0,0 +1,26 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:lower_waist", + "nameKey": "slimevr:bone.lower_waist", + "parent": "slimevr:upper_waist", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:lower_waist", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 60, + "swingDegrees": 120 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/neck.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/neck.json new file mode 100644 index 000000000..e95c584da --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/neck.json @@ -0,0 +1,22 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:neck", + "nameKey": "slimevr:bone.neck", + "parent": "slimevr:head", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:neck", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:head" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_big_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_big_toe.json new file mode 100644 index 000000000..3b4a803e1 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_big_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_big_toe", + "nameKey": "slimevr:bone.right_big_toe", + "parent": "slimevr:right_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": -0.28, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.27 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:right_index_toe", + "slimevr:right_middle_toe", + "slimevr:right_ring_toe", + "slimevr:right_little_toe", + "slimevr:right_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_foot.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_foot.json new file mode 100644 index 000000000..0f30798bc --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_foot.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_foot", + "nameKey": "slimevr:bone.right_foot", + "parent": "slimevr:right_lower_leg", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -1 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:right_lower_leg" + }, + "constraint": { + "type": "looseHinge", + "minDegrees": -60, + "maxDegrees": 90, + "allowedDeviationDegrees": 60, + "axis": { + "x": -1, + "y": 0, + "z": 0 + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_hand.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_hand.json new file mode 100644 index 000000000..7649422e2 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_hand.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_hand", + "nameKey": "slimevr:bone.right_hand", + "parent": "slimevr:right_lower_arm", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + }, + { + "proportion": "slimevr:hand_z", + "direction": { + "x": 0, + "y": 0, + "z": -1 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:right_lower_arm" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 120, + "swingDegrees": 120 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_distal.json new file mode 100644 index 000000000..c30e0d349 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_index_distal", + "nameKey": "slimevr:bone.right_index_distal", + "parent": "slimevr:right_index_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.174685, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_intermediate.json new file mode 100644 index 000000000..5de9f94b7 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_index_intermediate", + "nameKey": "slimevr:bone.right_index_intermediate", + "parent": "slimevr:right_index_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.227815, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_proximal.json new file mode 100644 index 000000000..586614e80 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_index_proximal", + "nameKey": "slimevr:bone.right_index_proximal", + "parent": "slimevr:right_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": -0.03, + "y": 0.05, + "z": -0.34 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.4025, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_toe.json new file mode 100644 index 000000000..556eec88c --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_index_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_index_toe", + "nameKey": "slimevr:bone.right_index_toe", + "parent": "slimevr:right_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": -0.12, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.24 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:right_middle_toe", + "slimevr:right_ring_toe", + "slimevr:right_little_toe", + "slimevr:right_big_toe", + "slimevr:right_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_distal.json new file mode 100644 index 000000000..65bab75a2 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_little_distal", + "nameKey": "slimevr:bone.right_little_distal", + "parent": "slimevr:right_little_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.14973, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_intermediate.json new file mode 100644 index 000000000..42957b639 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_little_intermediate", + "nameKey": "slimevr:bone.right_little_intermediate", + "parent": "slimevr:right_little_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.19527, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_proximal.json new file mode 100644 index 000000000..7288df6f6 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_little_proximal", + "nameKey": "slimevr:bone.right_little_proximal", + "parent": "slimevr:right_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": 0.1, + "z": 0.31 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.345, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_toe.json new file mode 100644 index 000000000..f1e709ae1 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_little_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_little_toe", + "nameKey": "slimevr:bone.right_little_toe", + "parent": "slimevr:right_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0.26, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.18 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:right_ring_toe", + "slimevr:right_middle_toe", + "slimevr:right_index_toe", + "slimevr:right_big_toe", + "slimevr:right_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_arm.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_arm.json new file mode 100644 index 000000000..603669ad0 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_arm.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_lower_arm", + "nameKey": "slimevr:bone.right_lower_arm", + "parent": "slimevr:right_upper_arm", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:lower_arm", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:right_upper_arm" + }, + "constraint": { + "type": "looseHinge", + "minDegrees": -180, + "maxDegrees": 0, + "allowedDeviationDegrees": 40, + "axis": { + "x": -1, + "y": 0, + "z": 0 + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_leg.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_leg.json new file mode 100644 index 000000000..38f456772 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_lower_leg.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_lower_leg", + "nameKey": "slimevr:bone.right_lower_leg", + "parent": "slimevr:right_upper_leg", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:lower_leg", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + }, + { + "proportion": "slimevr:foot_shift", + "direction": { + "x": 0, + "y": 0, + "z": -1 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "looseHinge", + "minDegrees": -5, + "maxDegrees": 180, + "allowedDeviationDegrees": 10, + "axis": { + "x": -1, + "y": 0, + "z": 0 + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_distal.json new file mode 100644 index 000000000..b8c510a6a --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_middle_distal", + "nameKey": "slimevr:bone.right_middle_distal", + "parent": "slimevr:right_middle_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.19964, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_intermediate.json new file mode 100644 index 000000000..58134f67d --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_middle_intermediate", + "nameKey": "slimevr:bone.right_middle_intermediate", + "parent": "slimevr:right_middle_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.26036, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_proximal.json new file mode 100644 index 000000000..5f52305ed --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_middle_proximal", + "nameKey": "slimevr:bone.right_middle_proximal", + "parent": "slimevr:right_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": -0.04, + "y": 0, + "z": -0.11 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.46, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_toe.json new file mode 100644 index 000000000..1e21e772d --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_middle_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_middle_toe", + "nameKey": "slimevr:bone.right_middle_toe", + "parent": "slimevr:right_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.23 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:right_index_toe", + "slimevr:right_ring_toe", + "slimevr:right_little_toe", + "slimevr:right_big_toe", + "slimevr:right_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_distal.json new file mode 100644 index 000000000..a37ac81f2 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_ring_distal", + "nameKey": "slimevr:bone.right_ring_distal", + "parent": "slimevr:right_ring_intermediate", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.174685, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_intermediate.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_intermediate.json new file mode 100644 index 000000000..587f705f4 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_intermediate.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_ring_intermediate", + "nameKey": "slimevr:bone.right_ring_intermediate", + "parent": "slimevr:right_ring_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.227815, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_proximal.json new file mode 100644 index 000000000..bdea5b0c4 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_proximal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_ring_proximal", + "nameKey": "slimevr:bone.right_ring_proximal", + "parent": "slimevr:right_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": -0.03, + "y": 0.03, + "z": 0.11 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": 0, + "y": -0.4025, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_toe.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_toe.json new file mode 100644 index 000000000..2d19930d3 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_ring_toe.json @@ -0,0 +1,40 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_ring_toe", + "nameKey": "slimevr:bone.right_ring_toe", + "parent": "slimevr:right_foot", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0.12, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:foot_length", + "direction": { + "x": 0, + "y": 0, + "z": -0.21 + } + } + ] + }, + "rotationFallback": { + "type": "firstActive", + "sources": [ + "slimevr:right_middle_toe", + "slimevr:right_index_toe", + "slimevr:right_little_toe", + "slimevr:right_big_toe", + "slimevr:right_foot" + ] + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_shoulder.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_shoulder.json new file mode 100644 index 000000000..001d1adf1 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_shoulder.json @@ -0,0 +1,35 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_shoulder", + "nameKey": "slimevr:bone.right_shoulder", + "parent": "slimevr:neck", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:shoulders_distance", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + }, + { + "proportion": "slimevr:shoulders_width", + "direction": { + "x": 0.5, + "y": 0, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:upper_chest" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 0, + "swingDegrees": 30 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_distal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_distal.json new file mode 100644 index 000000000..cd7bdbf5c --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_distal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_thumb_distal", + "nameKey": "slimevr:bone.right_thumb_distal", + "parent": "slimevr:right_thumb_proximal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": -0.00639448, + "y": -0.12788955, + "z": -0.08952269 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_metacarpal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_metacarpal.json new file mode 100644 index 000000000..490f13fa1 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_metacarpal.json @@ -0,0 +1,33 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_thumb_metacarpal", + "nameKey": "slimevr:bone.right_thumb_metacarpal", + "parent": "slimevr:right_hand", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": -0.16, + "y": 0.3, + "z": -0.28 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": -0.01473382, + "y": -0.29467638, + "z": -0.20627347 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_proximal.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_proximal.json new file mode 100644 index 000000000..aec5f24b4 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_thumb_proximal.json @@ -0,0 +1,21 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_thumb_proximal", + "nameKey": "slimevr:bone.right_thumb_proximal", + "parent": "slimevr:right_thumb_metacarpal", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:hand_y", + "direction": { + "x": -0.00833934, + "y": -0.16678683, + "z": -0.11675078 + } + } + ] + }, + "rotationFallback": { + "type": "none" + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_arm.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_arm.json new file mode 100644 index 000000000..0b3041874 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_arm.json @@ -0,0 +1,27 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_upper_arm", + "nameKey": "slimevr:bone.right_upper_arm", + "parent": "slimevr:right_shoulder", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:upper_arm", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "copy", + "source": "slimevr:right_shoulder" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 120, + "swingDegrees": 180 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_leg.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_leg.json new file mode 100644 index 000000000..0529255a6 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/right_upper_leg.json @@ -0,0 +1,38 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:right_upper_leg", + "nameKey": "slimevr:bone.right_upper_leg", + "parent": "slimevr:hip", + "headOffset": { + "terms": [ + { + "proportion": "slimevr:hips_width", + "direction": { + "x": 0.5, + "y": 0, + "z": 0 + } + } + ] + }, + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:upper_leg", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 120, + "swingDegrees": 170 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_chest.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_chest.json new file mode 100644 index 000000000..a8b721a94 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_chest.json @@ -0,0 +1,26 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:upper_chest", + "nameKey": "slimevr:bone.upper_chest", + "parent": "slimevr:neck", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:upper_chest", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 90, + "swingDegrees": 120 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_waist.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_waist.json new file mode 100644 index 000000000..7037a3f3c --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/bones/upper_waist.json @@ -0,0 +1,26 @@ +{ + "$schema": "../../schemas/v1/bone.schema.json", + "key": "slimevr:upper_waist", + "nameKey": "slimevr:bone.upper_waist", + "parent": "slimevr:lower_chest", + "tailOffset": { + "terms": [ + { + "proportion": "slimevr:upper_waist", + "direction": { + "x": 0, + "y": -1, + "z": 0 + } + } + ] + }, + "rotationFallback": { + "type": "none" + }, + "constraint": { + "type": "twistSwing", + "twistDegrees": 60, + "swingDegrees": 120 + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_length.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_length.json new file mode 100644 index 000000000..5b4221153 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_length.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:foot_length", + "nameKey": "slimevr:proportion.foot_length", + "descriptionKey": "slimevr:proportion.foot_length.description", + "default": { + "type": "heightRatio", + "value": 0.08227848 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_shift.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_shift.json new file mode 100644 index 000000000..0913628ab --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/foot_shift.json @@ -0,0 +1,11 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:foot_shift", + "nameKey": "slimevr:proportion.foot_shift", + "descriptionKey": "slimevr:proportion.foot_shift.description", + "default": { + "type": "fixed", + "value": -0.05 + }, + "contributesToHeight": false +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_y.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_y.json new file mode 100644 index 000000000..c7b15f456 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_y.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:hand_y", + "nameKey": "slimevr:proportion.hand_y", + "descriptionKey": "slimevr:proportion.hand_y.description", + "default": { + "type": "heightRatio", + "value": 0.05063291 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_z.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_z.json new file mode 100644 index 000000000..c228086a5 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hand_z.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:hand_z", + "nameKey": "slimevr:proportion.hand_z", + "descriptionKey": "slimevr:proportion.hand_z.description", + "default": { + "type": "fixed", + "value": 0 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/head.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/head.json new file mode 100644 index 000000000..c81c22433 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/head.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:head", + "nameKey": "slimevr:proportion.head", + "descriptionKey": "slimevr:proportion.head.description", + "default": { + "type": "fixed", + "value": 0.1 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hip.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hip.json new file mode 100644 index 000000000..caeb4cd30 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hip.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:hip", + "nameKey": "slimevr:proportion.hip", + "descriptionKey": "slimevr:proportion.hip.description", + "default": { + "type": "heightRatio", + "value": 0.02531646 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hips_width.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hips_width.json new file mode 100644 index 000000000..78f54dac6 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/hips_width.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:hips_width", + "nameKey": "slimevr:proportion.hips_width", + "descriptionKey": "slimevr:proportion.hips_width.description", + "default": { + "type": "fixed", + "value": 0.26 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_arm.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_arm.json new file mode 100644 index 000000000..9d847c151 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_arm.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:lower_arm", + "nameKey": "slimevr:proportion.lower_arm", + "descriptionKey": "slimevr:proportion.lower_arm.description", + "default": { + "type": "heightRatio", + "value": 0.16455696 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_chest.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_chest.json new file mode 100644 index 000000000..a7abd9742 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_chest.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:lower_chest", + "nameKey": "slimevr:proportion.lower_chest", + "descriptionKey": "slimevr:proportion.lower_chest.description", + "default": { + "type": "heightRatio", + "value": 0.10126582 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_leg.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_leg.json new file mode 100644 index 000000000..c8bd18ccd --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_leg.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:lower_leg", + "nameKey": "slimevr:proportion.lower_leg", + "descriptionKey": "slimevr:proportion.lower_leg.description", + "default": { + "type": "heightRatio", + "value": 0.3164557 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_waist.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_waist.json new file mode 100644 index 000000000..527396231 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/lower_waist.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:lower_waist", + "nameKey": "slimevr:proportion.lower_waist", + "descriptionKey": "slimevr:proportion.lower_waist.description", + "default": { + "type": "heightRatio", + "value": 0.06329114 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/neck.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/neck.json new file mode 100644 index 000000000..14856edc5 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/neck.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:neck", + "nameKey": "slimevr:proportion.neck", + "descriptionKey": "slimevr:proportion.neck.description", + "default": { + "type": "heightRatio", + "value": 0.06329114 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_distance.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_distance.json new file mode 100644 index 000000000..f9b3ee89f --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_distance.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:shoulders_distance", + "nameKey": "slimevr:proportion.shoulders_distance", + "descriptionKey": "slimevr:proportion.shoulders_distance.description", + "default": { + "type": "fixed", + "value": 0.06 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_width.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_width.json new file mode 100644 index 000000000..6d1b48595 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/shoulders_width.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:shoulders_width", + "nameKey": "slimevr:proportion.shoulders_width", + "descriptionKey": "slimevr:proportion.shoulders_width.description", + "default": { + "type": "fixed", + "value": 0.35 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_arm.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_arm.json new file mode 100644 index 000000000..34d129384 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_arm.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:upper_arm", + "nameKey": "slimevr:proportion.upper_arm", + "descriptionKey": "slimevr:proportion.upper_arm.description", + "default": { + "type": "heightRatio", + "value": 0.16455696 + }, + "contributesToHeight": false, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_chest.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_chest.json new file mode 100644 index 000000000..c5d48866d --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_chest.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:upper_chest", + "nameKey": "slimevr:proportion.upper_chest", + "descriptionKey": "slimevr:proportion.upper_chest.description", + "default": { + "type": "heightRatio", + "value": 0.10126582 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_leg.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_leg.json new file mode 100644 index 000000000..e12840050 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_leg.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:upper_leg", + "nameKey": "slimevr:proportion.upper_leg", + "descriptionKey": "slimevr:proportion.upper_leg.description", + "default": { + "type": "heightRatio", + "value": 0.26582278 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_waist.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_waist.json new file mode 100644 index 000000000..936944a73 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/data/proportions/upper_waist.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/v1/proportion.schema.json", + "key": "slimevr:upper_waist", + "nameKey": "slimevr:proportion.upper_waist", + "descriptionKey": "slimevr:proportion.upper_waist.description", + "default": { + "type": "heightRatio", + "value": 0.06329114 + }, + "contributesToHeight": true, + "minimum": 0 +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/manifest.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/manifest.json new file mode 100644 index 000000000..0af785c97 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/manifest.json @@ -0,0 +1,15 @@ +{ + "$schema": "schemas/v1/manifest.schema.json", + "formatVersion": 1, + "id": "slimevr:core", + "nameKey": "slimevr:pack.core.name", + "descriptionKey": "slimevr:pack.core.description", + "version": [ + 1, + 0, + 0 + ], + "authors": [ + "SlimeVR" + ] +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/bone.schema.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/bone.schema.json new file mode 100644 index 000000000..4f66cb1fb --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/bone.schema.json @@ -0,0 +1,208 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "required": [ + "key", + "nameKey" + ], + "properties": { + "$schema": { + "type": "string" + }, + "key": { + "$ref": "common.schema.json#/$defs/key" + }, + "nameKey": { + "$ref": "common.schema.json#/$defs/translationKey" + }, + "parent": { + "$ref": "common.schema.json#/$defs/key" + }, + "headOffset": { + "$ref": "common.schema.json#/$defs/offset" + }, + "tailOffset": { + "$ref": "common.schema.json#/$defs/offset" + }, + "rotationFallback": { + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type" + ], + "properties": { + "type": { + "const": "none" + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "source" + ], + "properties": { + "type": { + "const": "copy" + }, + "source": { + "anyOf": [ + { + "const": "parent" + }, + { + "$ref": "common.schema.json#/$defs/key" + } + ] + }, + "before": { + "description": "Run this bone's rotation fallback before the fallbacks owned by these bones.", + "$ref": "common.schema.json#/$defs/orderReferences" + }, + "after": { + "description": "Run this bone's rotation fallback after the fallbacks owned by these bones.", + "$ref": "common.schema.json#/$defs/orderReferences" + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "sources" + ], + "properties": { + "type": { + "const": "firstActive" + }, + "sources": { + "type": "array", + "minItems": 1, + "uniqueItems": true, + "description": "The first active source is used; if none are active, the final source is used regardless of activity.", + "items": { + "anyOf": [ + { + "const": "parent" + }, + { + "$ref": "common.schema.json#/$defs/key" + } + ] + } + }, + "before": { + "description": "Run this bone's rotation fallback before the fallbacks owned by these bones.", + "$ref": "common.schema.json#/$defs/orderReferences" + }, + "after": { + "description": "Run this bone's rotation fallback after the fallbacks owned by these bones.", + "$ref": "common.schema.json#/$defs/orderReferences" + } + } + } + ] + }, + "constraint": { + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "twistDegrees", + "swingDegrees" + ], + "properties": { + "type": { + "const": "twistSwing" + }, + "twistDegrees": { + "type": "number", + "minimum": 0, + "maximum": 180 + }, + "swingDegrees": { + "type": "number", + "minimum": 0, + "maximum": 180 + }, + "allowedDeviationDegrees": { + "type": "number", + "minimum": 0, + "maximum": 180 + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "minDegrees", + "maxDegrees", + "axis" + ], + "properties": { + "type": { + "const": "hinge" + }, + "minDegrees": { + "type": "number", + "minimum": -180, + "maximum": 180 + }, + "maxDegrees": { + "type": "number", + "minimum": -180, + "maximum": 180 + }, + "axis": { + "$ref": "common.schema.json#/$defs/vector" + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "minDegrees", + "maxDegrees", + "allowedDeviationDegrees", + "axis" + ], + "properties": { + "type": { + "const": "looseHinge" + }, + "minDegrees": { + "type": "number", + "minimum": -180, + "maximum": 180 + }, + "maxDegrees": { + "type": "number", + "minimum": -180, + "maximum": 180 + }, + "allowedDeviationDegrees": { + "type": "number", + "minimum": 0, + "maximum": 180 + }, + "axis": { + "$ref": "common.schema.json#/$defs/vector" + } + } + } + ] + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/common.schema.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/common.schema.json new file mode 100644 index 000000000..4efa2aa58 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/common.schema.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$defs": { + "key": { + "type": "string", + "pattern": "^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_./-]*$" + }, + "translationKey": { + "type": "string", + "pattern": "^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_.-]*$" + }, + "orderReferences": { + "type": "array", + "minItems": 1, + "uniqueItems": true, + "items": { + "$ref": "#/$defs/key" + } + }, + "vector": { + "type": "object", + "additionalProperties": false, + "required": [ + "x", + "y", + "z" + ], + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + } + }, + "offset": { + "type": "object", + "additionalProperties": false, + "properties": { + "base": { + "$ref": "#/$defs/vector" + }, + "terms": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "proportion", + "direction" + ], + "properties": { + "proportion": { + "$ref": "#/$defs/key" + }, + "direction": { + "$ref": "#/$defs/vector", + "description": "Dimensionless coefficient. Generated core coefficients are rounded to eight decimal places." + } + } + } + } + } + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/language.schema.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/language.schema.json new file mode 100644 index 000000000..87f3899c2 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/language.schema.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "$schema": { + "type": "string" + } + }, + "patternProperties": { + "^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_.-]*$": { + "type": "string" + } + }, + "additionalProperties": false +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/manifest.schema.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/manifest.schema.json new file mode 100644 index 000000000..05c33ab3c --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/manifest.schema.json @@ -0,0 +1,72 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "required": [ + "formatVersion", + "id", + "nameKey", + "descriptionKey", + "version", + "authors" + ], + "properties": { + "$schema": { + "type": "string" + }, + "formatVersion": { + "const": 1 + }, + "id": { + "$ref": "common.schema.json#/$defs/key" + }, + "nameKey": { + "$ref": "common.schema.json#/$defs/translationKey" + }, + "descriptionKey": { + "$ref": "common.schema.json#/$defs/translationKey" + }, + "version": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "items": { + "type": "integer", + "minimum": 0 + } + }, + "authors": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "minLength": 1 + } + }, + "dependencies": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "$ref": "common.schema.json#/$defs/key" + }, + "version": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "items": { + "type": "integer", + "minimum": 0 + } + } + } + } + } + } +} diff --git a/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/proportion.schema.json b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/proportion.schema.json new file mode 100644 index 000000000..f26ff7bb9 --- /dev/null +++ b/server/core/src/main/resources/dev/slimevr/resourcepacks/core/schemas/v1/proportion.schema.json @@ -0,0 +1,73 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "required": [ + "key", + "nameKey", + "default" + ], + "properties": { + "$schema": { + "type": "string" + }, + "key": { + "$ref": "common.schema.json#/$defs/key" + }, + "nameKey": { + "$ref": "common.schema.json#/$defs/translationKey" + }, + "descriptionKey": { + "$ref": "common.schema.json#/$defs/translationKey" + }, + "contributesToHeight": { + "type": "boolean", + "default": false + }, + "minimum": { + "type": "number", + "description": "Optional inclusive lower bound for user-provided values, in metres." + }, + "maximum": { + "type": "number", + "description": "Optional inclusive upper bound for user-provided values, in metres." + }, + "default": { + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "const": "fixed" + }, + "value": { + "type": "number" + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "const": "heightRatio" + }, + "value": { + "type": "number", + "minimum": 0 + } + } + } + ] + } + } +}