Package org.lwjgl.ovr

Class OVRPoseStatef

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class OVRPoseStatef
    extends Struct
    implements NativeResource
    A full pose (rigid body) configuration with first and second derivatives.

    Body refers to any object for which ovrPoseStatef is providing data. It can be the HMD, Touch controller, sensor or something else. The context depends on the usage of the struct.

    Member documentation

    • ThePose – position and orientation
    • AngularVelocity – angular velocity in radians per second
    • LinearVelocity – velocity in meters per second
    • AngularAcceleration – angular acceleration in radians per second per second
    • LinearAcceleration – acceleration in meters per second per second
    • TimeInSeconds – absolute time that this pose refers to. See GetTimeInSeconds

    Layout

    
     struct ovrPoseStatef {
         ovrPosef ThePose;
         ovrVector3f AngularVelocity;
         ovrVector3f LinearVelocity;
         ovrVector3f AngularAcceleration;
         ovrVector3f LinearAcceleration;
         char[4];
         double TimeInSeconds;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • THEPOSE, ANGULARVELOCITY, LINEARVELOCITY, ANGULARACCELERATION, LINEARACCELERATION, TIMEINSECONDS

        The struct member offsets.
    • Constructor Detail

      • OVRPoseStatef

        public OVRPoseStatef​(java.nio.ByteBuffer container)
        Creates a OVRPoseStatef instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.