mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-20 17:11:20 -08:00
Add todos for fallback processors
This commit is contained in:
1 parent
b756a30030
commit
d07b05935c
2 files changed
+3
No files matched your search
+1
@@ -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 ->
|
||||
|
||||
Reference in new issue
Block a user