From 46d70811e10d44277dd2b3d2c2914977bc76d820 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 21:29:54 +0100 Subject: [PATCH] BodyPainBox: the hold point is the palm's (-0.210, 1.116, 0.441) and the box half 0.125, as in Lodur's ConnectedPainBox Co-Authored-By: Claude Sonnet 5.5 --- src/BadDay.Ymir/BodyPainBox.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BadDay.Ymir/BodyPainBox.cs b/src/BadDay.Ymir/BodyPainBox.cs index 3cc4ff3..6d7f5a9 100644 --- a/src/BadDay.Ymir/BodyPainBox.cs +++ b/src/BadDay.Ymir/BodyPainBox.cs @@ -32,8 +32,8 @@ public static class BodyPainBox /// The ragdoll's gains are tuned at 120 Hz. public const double TickSeconds = 1.0 / 120.0; - /// Centre of the box and the right hand's hold point. - public static readonly (float X, float Y, float Z) HoldPoint = (-0.21f, 1.19f, 0.46f); + /// Centre of the box and the right hand's hold point: where the right palm settles at the hold pose (a copy of Lodur's ConnectedPainBox.Box). + public static readonly (float X, float Y, float Z) HoldPoint = (-0.210f, 1.116f, 0.441f); /// The hand is out when it has stayed outside the box this long after the break. public const double OutHoldSeconds = 0.2; @@ -72,7 +72,8 @@ public readonly record struct BodyEvent(long Tick, TickEvents Events); /// public sealed class BodyPainBoxSession : IDisposable { - private const float BoxHalf = 0.12f; + /// The box's half extent, equal to Lodur's ConnectedPainBox (0.125 m: the palm holds in it until the break). + private const float BoxHalf = 0.125f; /// After the deliberate withdrawal begins the run waits this long for the hand to come out. private const double SettleSeconds = 1.0;