Class VRContext.VRDevicePose

  • Enclosing class:
    VRContext

    public static class VRContext.VRDevicePose
    extends java.lang.Object
    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

      Fields 
      Modifier and Type Field Description
      com.badlogic.gdx.math.Vector3 angularVelocity
      the angular velocity in radians/s in tracker space
      boolean isConnected
      whether the device is connected
      boolean 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 space
      com.badlogic.gdx.math.Vector3 velocity
      the velocity in m/s in tracker space space
    • Constructor Summary

      Constructors 
      Constructor Description
      VRDevicePose​(int index)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • VRDevicePose

        public VRDevicePose​(int index)