Add todos for fallback processors

This commit is contained in:
Erimel committed 2026-10-02 17:57:45 -04:00
1 parent b756a30030
commit d07b05935c
2 files changed
+3

No files matched your search

@@ -11,6 +11,7 @@ import kotlin.collections.set
* Handles replacing accelerations of boneInputs that are not actively receiving any by
* falling back to their parent's, or child's, acceleration.
*/
// TODO merge this with BoneYawFallbackInputProcessor
class AccelerationFallbackInputProcessor : SkeletonInputProcessor {
override fun process(mutableInputSkeleton: InputSkeleton, skeletonHeight: Float) {
val processedParts: MutableSet<BodyPart> = mutableSetOf()
@@ -12,6 +12,8 @@ import kotlin.collections.set
* falling back to their parent's, then children's, yaw.
*/
class BoneYawFallbackInputProcessor : SkeletonInputProcessor {
// TODO add logic to prevent the head from taking the fingers' yaw. Same with acceleration fallback processor.
// (Head taking spine yaw is fine. No taking arm yaw, and probably no legs. Maybe other cases)
override fun process(mutableInputSkeleton: InputSkeleton, skeletonHeight: Float) {
val processedParts: MutableSet<BodyPart> = mutableSetOf()
mutableInputSkeleton.forEachBone { parentPart, parentBone ->