From 69d6089204154425982526befdb37a80a25f0304 Mon Sep 17 00:00:00 2001 From: Lars Olzem Date: Thu, 8 Aug 2024 19:25:33 +0200 Subject: [PATCH] Update docs --- .../Editor/Editor.cs | 19 ++++++++++--------- .../Runtime/SetupTracker.cs | 3 +++ .../Runtime/Utilities.cs | 3 +++ README.md | 3 +-- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Packages/dev.hackebein.object-tracking/Editor/Editor.cs b/Packages/dev.hackebein.object-tracking/Editor/Editor.cs index e94216d..7d4cf92 100644 --- a/Packages/dev.hackebein.object-tracking/Editor/Editor.cs +++ b/Packages/dev.hackebein.object-tracking/Editor/Editor.cs @@ -322,15 +322,15 @@ public override void OnInspectorGUI() avatarEyeHeight = avatarDescriptor.ViewPosition.y; } - using (new GUILayout.HorizontalScope()) - { + using (new GUILayout.HorizontalScope()) + { GUILayout.Label("Real Height (in m)"); - // TODO: measure with HMD over OpenVR? + // TODO: measure with HMD over OpenVR? _realHeight = EditorGUILayout.FloatField(_realHeight, RelativeWidth(3 / 5f)); - } + } if (avatarEyeHeight > 0 && _realHeight > 0) - { + { setup.scale = avatarEyeHeight / _realHeight; } } @@ -411,10 +411,11 @@ public override void OnInspectorGUI() // TODO: Implement Smoothing Types EditorGUILayout.Popup(0, new string[] { - "Exponential (VRC Phys Bone, PC only)", - "Exponential (Animator) (coming soon)", // https://notes.sleightly.dev/Smoothing-Exponential-019e9e69f617451dabd8d64554e09671 - "Damped (Animator) (coming soon)", // https://notes.sleightly.dev/Smoothed-Float-Half-21fe757e52da4e589e2b30997f459f44 - "Linear (Animator) (coming soon)", // Assets/JelleScripts/Linear/Timing + "Exponential (Unity Constraint, PC only)", + "Exponential (VRC Constraint) (coming soon)", + "Exponential (Animator) (coming soon?)", // https://notes.sleightly.dev/Smoothing-Exponential-019e9e69f617451dabd8d64554e09671 + "Damped (Animator) (coming soon?)", // https://notes.sleightly.dev/Smoothed-Float-Half-21fe757e52da4e589e2b30997f459f44 + "Linear (Animator) (coming soon?)", // Assets/JelleScripts/Linear/Timing }, RelativeWidth(3 / 5f, true)); } } diff --git a/Packages/dev.hackebein.object-tracking/Runtime/SetupTracker.cs b/Packages/dev.hackebein.object-tracking/Runtime/SetupTracker.cs index 721bfda..9593624 100644 --- a/Packages/dev.hackebein.object-tracking/Runtime/SetupTracker.cs +++ b/Packages/dev.hackebein.object-tracking/Runtime/SetupTracker.cs @@ -186,14 +186,17 @@ private string[] AxePathAndProperty(string name) case "RX": path = "ObjectTracking/" + this.name + "/" + this.name + "/" + this.name + "/" + this.name; property = "m_RotationOffsets.Array.data[0].x"; + // VRC Constraints: Sources.source0.ParentRotationOffset.x break; case "RY": path = "ObjectTracking/" + this.name + "/" + this.name + "/" + this.name + "/" + this.name; property = "m_RotationOffsets.Array.data[0].y"; + // VRC Constraints: Sources.source0.ParentRotationOffset.y break; case "RZ": path = "ObjectTracking/" + this.name + "/" + this.name + "/" + this.name + "/" + this.name; property = "m_RotationOffsets.Array.data[0].z"; + // VRC Constraints: Sources.source0.ParentRotationOffset.z break; } diff --git a/Packages/dev.hackebein.object-tracking/Runtime/Utilities.cs b/Packages/dev.hackebein.object-tracking/Runtime/Utilities.cs index e1d500c..b338401 100644 --- a/Packages/dev.hackebein.object-tracking/Runtime/Utilities.cs +++ b/Packages/dev.hackebein.object-tracking/Runtime/Utilities.cs @@ -456,6 +456,9 @@ public static AnimationClip CreateClip(string name, Dictionary _needs to contain Avatar Descriptor component_ -* Real eye height (in m): Your Eye height when looking straight
- _Do a selfy with foldable ruler staying on the ground_ +* Real height (in m) * If SteamVR is Running: * click reload button * click tracker you like to add