Class XrSpaceVelocityData

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSpaceVelocityData>
org.lwjgl.openxr.XrSpaceVelocityData
All Implemented Interfaces:
org.lwjgl.system.Pointer
Direct Known Subclasses:
XrSpaceVelocityDataKHR

public class XrSpaceVelocityData extends org.lwjgl.system.Struct<XrSpaceVelocityData>
Returns the data of a space.
Description

This is a single element of the array in XrSpaceVelocities::velocities, and is used to return the linear and angular velocity and velocity flags for a single space with respect to the specified base space from a call to LocateSpaces. It does not accept chained structures to allow for easier use in dynamically allocated container datatypes.

See Also

XrSpaceVelocities, XrVector3f

Layout


 struct XrSpaceVelocityData {
     XrSpaceVelocityFlags velocityFlags();
     XrVector3f linearVelocity();
     XrVector3f angularVelocity();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • VELOCITYFLAGS

      public static final int VELOCITYFLAGS
      The struct member offsets.
    • LINEARVELOCITY

      public static final int LINEARVELOCITY
      The struct member offsets.
    • ANGULARVELOCITY

      public static final int ANGULARVELOCITY
      The struct member offsets.
  • Constructor Details

    • XrSpaceVelocityData

      public XrSpaceVelocityData(ByteBuffer container)
      Creates a XrSpaceVelocityData 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.

  • Method Details