From d1a02c52a9b2ebdce39a02a37fa286ac4d96e4ac Mon Sep 17 00:00:00 2001 From: Eiren Rain Date: Tue, 28 Jun 2022 20:36:04 +0200 Subject: [PATCH] Monor changes, added comments --- src/main/java/dev/slimevr/poserecorder/TrackerFrame.java | 2 +- src/main/java/dev/slimevr/vr/trackers/Tracker.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/slimevr/poserecorder/TrackerFrame.java b/src/main/java/dev/slimevr/poserecorder/TrackerFrame.java index 49eb3ed683..9313d12295 100644 --- a/src/main/java/dev/slimevr/poserecorder/TrackerFrame.java +++ b/src/main/java/dev/slimevr/poserecorder/TrackerFrame.java @@ -195,6 +195,6 @@ public UDPDevice getDevice() { @Override public Tracker get() { - return null; + return this; } } diff --git a/src/main/java/dev/slimevr/vr/trackers/Tracker.java b/src/main/java/dev/slimevr/vr/trackers/Tracker.java index 7921ea348c..b08d7e713a 100644 --- a/src/main/java/dev/slimevr/vr/trackers/Tracker.java +++ b/src/main/java/dev/slimevr/vr/trackers/Tracker.java @@ -52,6 +52,11 @@ static int getNextLocalTrackerId() { Device getDevice(); + /** + * Returns the real tracker behind this tracker. In case this tracker + * transforms another tracker like {@link ReferenceAdjustedTracker}, this + * will return the tracker it modifies. Otherwise, it will return itself. + */ Tracker get(); default String getDescriptiveName() {