From fd1b0f086fe67b3af4a63a154f38611bf91f64ee Mon Sep 17 00:00:00 2001 From: kinect-bot Date: Thu, 26 Nov 2026 22:14:24 -0500 Subject: [PATCH] fix(mapping): stabilize cursor - higher smoothing + wider jitter dead-zone + lower prediction (reference jitter was making the hand-shoulder cursor jump) --- core/mapping/mapping.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/core/mapping/mapping.h b/core/mapping/mapping.h index 27bd915..723fd5f 100644 --- a/core/mapping/mapping.h +++ b/core/mapping/mapping.h @@ -35,11 +35,15 @@ struct MappingConfig { }; struct SmoothingParameters { - float smoothing = 0.6f; - float correction = 0.4f; - float prediction = 0.4f; - float jitter_radius = 0.04f; - float max_deviation_radius = 0.07f; + // Tuned for a stable menu hand-cursor: the game maps HAND relative to the + // SHOULDER, so reference jitter (MediaPipe shoulder drift during arm motion) + // makes the cursor jump. Higher smoothing + a wider jitter dead-zone steady + // it; lower prediction stops velocity overshoot from amplifying jitter. + float smoothing = 0.7f; + float correction = 0.3f; + float prediction = 0.2f; + float jitter_radius = 0.09f; + float max_deviation_radius = 0.13f; }; contract::Vector4 depth_image_to_skeleton(