From 6ebae1bedffda89c0945c7050e81b4a3b9b512ec Mon Sep 17 00:00:00 2001 From: Butterscotch! Date: Sat, 12 Sep 2026 02:57:57 -0400 Subject: [PATCH] Don't perform toe snap with a 0 length foot --- .../main/java/dev/slimevr/skeleton/fkprocessors/toe-snap.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/core/src/main/java/dev/slimevr/skeleton/fkprocessors/toe-snap.kt b/server/core/src/main/java/dev/slimevr/skeleton/fkprocessors/toe-snap.kt index f94bf3b01..a69bad61a 100644 --- a/server/core/src/main/java/dev/slimevr/skeleton/fkprocessors/toe-snap.kt +++ b/server/core/src/main/java/dev/slimevr/skeleton/fkprocessors/toe-snap.kt @@ -56,13 +56,15 @@ class ToeSnapFkProcessor(val settings: Settings) : SkeletonFkProcessor { for (bodyPart in bodyParts) { val input = mutableInputSkeleton[bodyPart] ?: continue if (input.isRotationActive) continue + val length = input.offset.len() + if (length <= 0f) continue val output = fk[bodyPart] ?: continue mutableInputSkeleton[bodyPart] = input.copy( rotation = snapToes( input.rotation, computeToeSnapRatio( output.headPosition.y, - input.offset.len(), + length, floorLevel, ), ),