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, ), ),