Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackebein committed Aug 8, 2024
1 parent 2ac18b4 commit 69d6089
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
19 changes: 10 additions & 9 deletions Packages/dev.hackebein.object-tracking/Editor/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions Packages/dev.hackebein.object-tracking/Runtime/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ public static AnimationClip CreateClip(string name, Dictionary<string[], float[]
Type type = typeof(GameObject);
switch (prop.Key[1].Split('.')[0])
{
//case "Sources":
// type = typeof( /*VRC CONSTRAINT*/);
// break;
case "m_TranslationOffsets":
case "m_RotationOffsets":
type = typeof(ParentConstraint);
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ Hackebein's VPM Listing: [vpm.hackebein.dev](https://vpm.hackebein.dev)
### Quick Setup (simple)
* Avatar: select your avatar<br>
<sup>_needs to contain Avatar Descriptor component_</sup>
* Real eye height (in m): Your Eye height when looking straight<br>
<sup>_Do a selfy with foldable ruler staying on the ground_</sup>
* Real height (in m)
* If SteamVR is Running:
* click reload button
* click tracker you like to add
Expand Down

0 comments on commit 69d6089

Please sign in to comment.