mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-20 17:11:20 -08:00
IK goal condition fix & basic unit test
This commit is contained in:
2 files changed
+74
-1
No files matched your search
@@ -73,7 +73,7 @@ fun ccdIk(boneInputs: InputSkeleton, bones: ComputedSkeleton, goals: List<IKChai
|
||||
return IKOutput(
|
||||
curBones,
|
||||
goals.associateWith {
|
||||
chainDistanceFromTarget(bones, it.chain, it.target) <= threshold
|
||||
chainDistanceFromTarget(curBones, it.chain, it.target) <= threshold
|
||||
},
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user