C Specification

The XrSpaceRelation structure is defined as:

typedef struct XrSpaceRelation {
    XrStructureType         type;
    void* XR_MAY_ALIAS      next;
    XrSpaceRelationFlags    relationFlags;
    XrTime                  time;
    XrPosef                 pose;
    XrVector3f              linearVelocity;
    XrVector3f              angularVelocity;
    XrVector3f              linearAcceleration;
    XrVector3f              angularAcceleration;
} XrSpaceRelation;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to an extension-specific structure.

  • relationFlags is a bitfield, with bit masks defined in XrSpaceRelationFlagBits, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful.

  • time is the XrTime for which the other fields have been populated, possibly through prediction or interpolation.

  • pose is an XrPosef defining the position and rotation of the origin of xrLocateSpace::space within the reference frame of xrLocateSpace::baseSpace.

  • linearVelocity is the positional velocity of the origin of xrLocateSpace::space within the reference frame of xrLocateSpace::baseSpace, in units of meters per second.

  • angularVelocity is the angular velocity of the origin of xrLocateSpace::space within the reference frame of xrLocateSpace::baseSpace, expressed within the reference frame of xrLocateSpace::space. It is represented as a 3D angular velocity vector, with units of radians per second, suitable for integration or conversion to other formats through use of the “exponential map” construct.

  • linearAcceleration is the positional acceleration of the origin of xrLocateSpace::space within the reference frame of xrLocateSpace::baseSpace, in units of meters per second per second.

  • angularAcceleration is the angular acceleration of the origin of xrLocateSpace::space within the reference frame of xrLocateSpace::baseSpace, expressed within the reference frame of xrLocateSpace::space. It is represented as a 3D vector, with units of radians per second per second.

Description

Valid Usage (Implicit)
  • type must be XR_TYPE_SPACE_RELATION

  • next must be NULL

  • relationFlags must be 0 or a valid combination of XrSpaceRelationFlagBits values

See Also

Document Notes

For more information, see the OpenXR Specification at URL

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.