use of com.jme3.system.jopenvr.HmdMatrix34_t in project jmonkeyengine by jMonkeyEngine.
the class OpenVR method getSeatedToAbsolutePosition.
@Override
public Vector3f getSeatedToAbsolutePosition() {
if (environment.isSeatedExperience() == false)
return Vector3f.ZERO;
if (hmdSeatToStand == null) {
hmdSeatToStand = new Vector3f();
HmdMatrix34_t mat = vrsystemFunctions.GetSeatedZeroPoseToStandingAbsoluteTrackingPose.apply();
Matrix4f tempmat = new Matrix4f();
VRUtil.convertSteamVRMatrix3ToMatrix4f(mat, tempmat);
tempmat.toTranslationVector(hmdSeatToStand);
}
return hmdSeatToStand;
}
Aggregations