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