C Specification

The XrRaycastInfoANDROID structure is defined as:

// Provided by XR_ANDROID_raycast
typedef struct XrRaycastInfoANDROID {
    XrStructureType                     type;
    const void*                         next;
    uint32_t                            maxResults;
    uint32_t                            trackerCount;
    const XrTrackableTrackerANDROID*    trackers;
    XrVector3f                          origin;
    XrVector3f                          trajectory;
    XrSpace                             space;
    XrTime                              time;
} XrRaycastInfoANDROID;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.

  • maxResults is the uint32_t maximum number of results to return.

  • trackerCount is the uint32_t count of the trackers array.

  • trackers is the array of XrTrackableTrackerANDROID that the casted ray should be tested against.

  • origin is the XrVector3f that the ray is cast from.

  • trajectory is the XrVector3f that the ray is targeted at.

  • space is the XrSpace that the ray is cast in.

  • time is the XrTime the ray is cast at.

Description

The XrRaycastInfoANDROID structure describes the ray to cast.

  • The XrRaycastInfoANDROID::trackers array may contain trackers of different types.

  • The XrRaycastInfoANDROID::trackers array must not contain multiple trackers of the same type, otherwise the runtime must return XR_ERROR_VALIDATION_FAILURE.

Valid Usage (Implicit)

See Also

Document Notes

For more information, see the OpenXR Specification

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

Copyright 2014-2025 The Khronos Group Inc.