Add fading between hand interaction profile and hand tracking

This commit is contained in:
Guillaume Meunier
2025-11-15 23:09:23 +01:00
parent 11abd8d9fe
commit 33e8016048
5 changed files with 126 additions and 121 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ constexpr float scroll_ratio = 10;
constexpr float trigger_click_thd = 0.8;
// Thresholds on the distance between the fingertip and GUI layers (positive: in front of the GUI, negative: behind the GUI)
constexpr float palm_distance_close_thd = 0.20; // Distance to switch between touch and aim interaction
constexpr float palm_distance_close_thd_lo = 0.18; // Distance to switch between touch and aim interaction
constexpr float palm_distance_close_thd_hi = 0.22; // Distance to switch between touch and aim interaction
constexpr float fingertip_distance_touching_thd_hi = -0.01; // Distance to register a click
constexpr float fingertip_distance_touching_thd_lo = -0.15; // Distance to register a click
constexpr float fingertip_distance_stick_thd = -0.02; // Max distance where the fingertip is moved to be on the GUI