From f44baef615f22f84893ee8df61916955c93cbec3 Mon Sep 17 00:00:00 2001 From: Erimel Date: Tue, 17 Nov 2026 20:19:20 -0500 Subject: [PATCH] compensate for feet pose mounting going inwards --- server/core/src/main/java/dev/slimevr/resets/module.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/core/src/main/java/dev/slimevr/resets/module.kt b/server/core/src/main/java/dev/slimevr/resets/module.kt index 68620ae1f..89b281ad9 100644 --- a/server/core/src/main/java/dev/slimevr/resets/module.kt +++ b/server/core/src/main/java/dev/slimevr/resets/module.kt @@ -46,6 +46,8 @@ import kotlin.collections.listOf import kotlin.time.Duration.Companion.seconds import kotlin.time.TimeMark +private const val FEET_POSE_DEG_INWARDS = 18 + data class ResetsState( val canDoYawReset: Boolean, val canDoMountingReset: Boolean, @@ -233,6 +235,11 @@ class ResetsManager( } private fun getYawOffset(bodyPart: BodyPart?, armsResetMode: ArmsMountingResetMode) = when (bodyPart) { + // Feet go back but a little inwards + BodyPart.LEFT_FOOT -> FastMath.PI - FEET_POSE_DEG_INWARDS * FastMath.DEG_TO_RAD + + BodyPart.RIGHT_FOOT -> FastMath.PI + FEET_POSE_DEG_INWARDS * FastMath.DEG_TO_RAD + // Going forward in ResetBodyParts.UPPER_LEGS -> 0f