mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-30 13:52:47 -08:00
Front fits better with the other options, and should cause less confusion about what the drop-down items mean.
23 lines
476 B
Java
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);
|
|
}
|
|
}
|