Package gaia.cu9.ari.gaiaorbit.vr.openvr
Class VRContext.VRDevicePose
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.vr.openvr.VRContext.VRDevicePose
-
- Enclosing class:
- VRContext
public static class VRContext.VRDevicePose extends java.lang.Object
Represents the pose of aVRContext.VRDevice
, including its transform, velocity and angular velocity. Also indicates whether the pose is valid and whether the device is connected.
-
-
Field Summary
Fields Modifier and Type Field Description com.badlogic.gdx.math.Vector3
angularVelocity
the angular velocity in radians/s in tracker spaceboolean
isConnected
whether the device is connectedboolean
isValid
whether the pose is valid our invalid, e.g.com.badlogic.gdx.math.Matrix4
transform
transform encoding the position and rotation of the device in tracker spacecom.badlogic.gdx.math.Vector3
velocity
the velocity in m/s in tracker space space
-
Constructor Summary
Constructors Constructor Description VRDevicePose(int index)
-
-
-
Field Detail
-
transform
public final com.badlogic.gdx.math.Matrix4 transform
transform encoding the position and rotation of the device in tracker space
-
velocity
public final com.badlogic.gdx.math.Vector3 velocity
the velocity in m/s in tracker space space
-
angularVelocity
public final com.badlogic.gdx.math.Vector3 angularVelocity
the angular velocity in radians/s in tracker space
-
isValid
public boolean isValid
whether the pose is valid our invalid, e.g. outdated because of tracking failure
-
isConnected
public boolean isConnected
whether the device is connected
-
-