mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-26 03:46:28 -08:00
Potential fix for smoothing causing centaur
This commit is contained in:
1 parent
28eb411ecb
commit
28efcda839
1 file changed
+1
-1
@@ -49,7 +49,7 @@ class SmoothingInputProcessor(val settings: Settings) :
|
||||
if (!bone.isRotationActive) return@forEachBone
|
||||
|
||||
val prev = smoothed[bodyPart] ?: bone.rotation
|
||||
val rotation = prev.lerpR(bone.rotation, alpha).unit()
|
||||
val rotation = prev.lerpQ(bone.rotation, alpha).unit()
|
||||
newSmoothed[bodyPart] = rotation
|
||||
if (rotation != bone.rotation) mutableInputSkeleton[bodyPart] = bone.copy(rotation = rotation)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user