diff --git a/server/core/src/main/java/dev/slimevr/skeleton/module.kt b/server/core/src/main/java/dev/slimevr/skeleton/module.kt index 561d52f79..bf600aa86 100644 --- a/server/core/src/main/java/dev/slimevr/skeleton/module.kt +++ b/server/core/src/main/java/dev/slimevr/skeleton/module.kt @@ -230,7 +230,7 @@ class Skeleton( ), targetProcessors = listOf( // FloorClipTargetProcessor(settings), - SkatingCorrectionTargetProcessor(settings).also { resettableSkeletonProcessors.add(it) }, +// SkatingCorrectionTargetProcessor(settings).also { resettableSkeletonProcessors.add(it) }, ), ikComputedProcessors = listOf( VelocityComputedProcessor().also { resettableSkeletonProcessors.add(it) }, diff --git a/server/core/src/main/java/dev/slimevr/vmc/input.kt b/server/core/src/main/java/dev/slimevr/vmc/input.kt index f1920923b..27271c30c 100644 --- a/server/core/src/main/java/dev/slimevr/vmc/input.kt +++ b/server/core/src/main/java/dev/slimevr/vmc/input.kt @@ -212,14 +212,14 @@ class VMCInputBehaviour( val unityName = BODY_PART_TO_UNITY_BONE[bodyPart]?.first() ?: continue val tracker = registry.boneTracker(bodyPart, unityName) tracker.context.dispatch(TrackerActions.SetStatus(TrackerStatus.OK)) - tracker.setRotation(rotation = transform.rotation, position = transform.position) + tracker.context.dispatch(TrackerActions.SetRotation(rotation = transform.rotation, position = transform.position)) } for (pose in frame.poseTrackers.values) { val tracker = registry.poseTracker(pose.serial) val position = if (pose.deviceScale) pose.position else pose.position * scale tracker.context.dispatch(TrackerActions.SetStatus(TrackerStatus.OK)) - tracker.setRotation(rotation = pose.rotation, position = position) + tracker.context.dispatch(TrackerActions.SetRotation(rotation = pose.rotation, position = position)) } registry.setStatus(TrackerStatus.OK) diff --git a/server/core/src/main/java/dev/slimevr/vmc/mapping.kt b/server/core/src/main/java/dev/slimevr/vmc/mapping.kt index b39152c52..ac751d8c1 100644 --- a/server/core/src/main/java/dev/slimevr/vmc/mapping.kt +++ b/server/core/src/main/java/dev/slimevr/vmc/mapping.kt @@ -163,10 +163,11 @@ private class VmcBoneTree(hierarchy: BodyPartMap>) { val VMC_OUTPUT_BONE_PARENTS: BodyPartMap = VmcBoneTree(VMC_HIERARCHY_MAP).parents val VMC_INPUT_HIERARCHY_MAP: BodyPartMap> = BodyPartMap( - VMC_HIERARCHY_MAP + mapOf( - BodyPart.CHEST to arrayOf(BodyPart.UPPER_CHEST), - BodyPart.UPPER_CHEST to arrayOf(BodyPart.NECK, BodyPart.LEFT_SHOULDER, BodyPart.RIGHT_SHOULDER), - ), + VMC_HIERARCHY_MAP + + mapOf( + BodyPart.CHEST to arrayOf(BodyPart.UPPER_CHEST), + BodyPart.UPPER_CHEST to arrayOf(BodyPart.NECK, BodyPart.LEFT_SHOULDER, BodyPart.RIGHT_SHOULDER), + ), ) private val vmcInputTree = VmcBoneTree(VMC_INPUT_HIERARCHY_MAP) val VMC_INPUT_BONE_ORDER: List = vmcInputTree.order diff --git a/server/core/src/test/java/dev/slimevr/TestServer.kt b/server/core/src/test/java/dev/slimevr/TestServer.kt index 767a1e603..41c53f540 100644 --- a/server/core/src/test/java/dev/slimevr/TestServer.kt +++ b/server/core/src/test/java/dev/slimevr/TestServer.kt @@ -117,7 +117,7 @@ fun buildTestSkeleton(scope: CoroutineScope): Skeleton { onBufferOverflow = BufferOverflow.DROP_OLDEST, ) computed.tryEmit(buildBones(context.state.value.boneInputs)) - val skeleton = Skeleton(context, buildTestSettings(scope), computed) + val skeleton = Skeleton(context, computed, emptySet()) skeleton.startObserving() return skeleton } diff --git a/server/core/src/test/java/dev/slimevr/vmc/InputDecoderTest.kt b/server/core/src/test/java/dev/slimevr/vmc/InputDecoderTest.kt index f63e93a39..ae8308e63 100644 --- a/server/core/src/test/java/dev/slimevr/vmc/InputDecoderTest.kt +++ b/server/core/src/test/java/dev/slimevr/vmc/InputDecoderTest.kt @@ -21,8 +21,7 @@ import kotlin.test.assertNotNull import kotlin.test.assertTrue import kotlin.time.Duration.Companion.seconds -private fun assertApprox(expected: Vector3, actual: Vector3, message: String = "") = - vectorAssertEquals(expected, actual, message = message) +private fun assertApprox(expected: Vector3, actual: Vector3, message: String = "") = vectorAssertEquals(expected, actual, message = message) // Quaternions q and -q represent the same rotation, so either sign is an acceptable match. private fun assertApprox(expected: Quaternion, actual: Quaternion, message: String = "") { diff --git a/server/core/src/test/java/dev/slimevr/vmc/VMCInputBehaviourTest.kt b/server/core/src/test/java/dev/slimevr/vmc/VMCInputBehaviourTest.kt index 23e6dc149..e07f82923 100644 --- a/server/core/src/test/java/dev/slimevr/vmc/VMCInputBehaviourTest.kt +++ b/server/core/src/test/java/dev/slimevr/vmc/VMCInputBehaviourTest.kt @@ -63,8 +63,7 @@ private fun transformArgs(name: String, pos: Vector3, rot: Quaternion): List