fix(mapping): stabilize cursor - higher smoothing + wider jitter dead-zone + lower prediction (reference jitter was making the hand-shoulder cursor jump)

This commit is contained in:
kinect-bot committed 2026-11-26 22:14:24 -05:00
1 parent 4981a4c768
commit fd1b0f086f
1 file changed
+9 -5
+9 -5
View File
@@ -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(