Files
SlimeVR-Server/src/main/java/dev/slimevr/vr/trackers/TrackerMountingRotation.java
T
MightyGood 9cd441654e Change FORWARD to FRONT for tracker mounting
Front fits better with the other options, and should cause less confusion about what the drop-down items mean.
2022-03-10 09:46:24 -06:00

23 lines
476 B
Java

package dev.slimevr.vr.trackers;
import com.jme3.math.FastMath;
import com.jme3.math.Quaternion;
public enum TrackerMountingRotation {
FRONT(180),
LEFT(90),
BACK(0),
RIGHT(-90);
public final float angle;
public final Quaternion quaternion = new Quaternion();
public static final TrackerMountingRotation[] values = values();
private TrackerMountingRotation(float angle) {
this.angle = angle;
quaternion.fromAngles(0, angle * FastMath.DEG_TO_RAD, 0);
}
}