mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-01 06:12:35 -08:00
Use position from SteamVR
This commit is contained in:
2 files changed
+15
-3
No files matched your search
@@ -30,7 +30,9 @@ object DriverBaseBehaviour : DriverBridgeBehaviour {
|
||||
receiver.inbound.on<DriverBridgeInbound.TrackerPosition> { event ->
|
||||
val tracker = receiver.context.state.value.trackers[event.trackerId]
|
||||
if (tracker != null) {
|
||||
tracker.context.dispatch(TrackerActions.SetRotation(rotation = event.rotation))
|
||||
tracker.context.dispatch(TrackerActions.Update {
|
||||
copy(rawRotation = event.rotation, position = event.position)
|
||||
})
|
||||
} else {
|
||||
AppLogger.steamvr.warn("Failed to find tracker ${event.trackerId}")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user