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;