Package gaiasky.vr.openvr
Class VRContext.VRDevicePose
java.lang.Object
gaiasky.vr.openvr.VRContext.VRDevicePose
- Enclosing class:
VRContext
Represents the pose of a
VRContext.VRDevice
, including its transform,
velocity and angular velocity. Also indicates whether the pose is valid
and whether the device is connected.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.badlogic.gdx.math.Vector3
the angular velocity in radians/s in tracker spaceboolean
whether the device is connectedboolean
whether the pose is valid our invalid, e.g.final com.badlogic.gdx.math.Matrix4
transform encoding the position and rotation of the device in tracker spacefinal com.badlogic.gdx.math.Vector3
the velocity in m/s in tracker space space -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
transform
public final com.badlogic.gdx.math.Matrix4 transformtransform encoding the position and rotation of the device in tracker space -
velocity
public final com.badlogic.gdx.math.Vector3 velocitythe velocity in m/s in tracker space space -
angularVelocity
public final com.badlogic.gdx.math.Vector3 angularVelocitythe angular velocity in radians/s in tracker space -
isValid
public boolean isValidwhether the pose is valid our invalid, e.g. outdated because of tracking failure -
isConnected
public boolean isConnectedwhether the device is connected
-
-
Constructor Details
-
VRDevicePose
public VRDevicePose(int index)
-
-
Method Details
-
getIndex
public int getIndex()
-