This extension allows an application to create a spatial anchor, an arbitrary freespace point in the user’s physical environment that will then be tracked by the runtime. The runtime should then adjust the position and orientation of that anchor’s origin over time as needed, independently of all other spaces and anchors, to ensure that it maintains its original mapping to the real world.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT
Extends |
| public static final String | XR_MSFT_SPATIAL_ANCHOR_EXTENSION_NAME
The extension name. |
| public static final int | XR_MSFT_spatial_anchor_SPEC_VERSION
The extension specification version. |
| public static final int | XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT
Extends |
| public static final int | XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT
Extends |
| public static final int | XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, long anchor)
Unsafe version of: |
| public static int | nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long createInfo, long space)
Unsafe version of: |
| public static int | xrCreateSpatialAnchorMSFT(XrSession
a handle to an session, XrSpatialAnchorCreateInfoMSFT XrSession.a pointer to an createInfo, PointerBuffer XrSpatialAnchorCreateInfoMSFT structure containing information about how to create the anchor.a pointer to a handle in which the created anchor)XrSpatialAnchorMSFT is returned.Creates a spatial anchor. |
| public static int | xrCreateSpatialAnchorSpaceMSFT(XrSession
a handle to an session, XrSpatialAnchorSpaceCreateInfoMSFT XrSession.a pointer to an createInfo, PointerBuffer XrSpatialAnchorSpaceCreateInfoMSFT structure containing information about how to create the anchor.a pointer to a handle in which the created space)XrSpace is returned.Creates a space from a spatial anchor. |
| public static int | xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT
a handle to an anchor)XrSpatialAnchorMSFT previously created by CreateSpatialAnchorMSFT.Destroys a spatial anchor. |
| XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT | back to summary |
|---|---|
| public static final int XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT Extends | |
| XR_MSFT_SPATIAL_ANCHOR_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_MSFT_SPATIAL_ANCHOR_EXTENSION_NAME The extension name. | |
| XR_MSFT_spatial_anchor_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_MSFT_spatial_anchor_SPEC_VERSION The extension specification version. | |
| XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT | back to summary |
|---|---|
| public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT Extends | |
| XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT | back to summary |
|---|---|
| public static final int XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT Extends Enum values: | |
| XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT | back to summary |
|---|---|
| public static final int XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT Extends Enum values: | |
| MSFTSpatialAnchor | back to summary |
|---|---|
| protected MSFTSpatialAnchor() | |
| nxrCreateSpatialAnchorMSFT | back to summary |
|---|---|
| public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, long anchor) Unsafe version of: | |
| nxrCreateSpatialAnchorSpaceMSFT | back to summary |
|---|---|
| public static int nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long createInfo, long space) Unsafe version of: | |
| xrCreateSpatialAnchorMSFT | back to summary |
|---|---|
| public static int xrCreateSpatialAnchorMSFT(XrSession session, XrSpatialAnchorCreateInfoMSFT createInfo, PointerBuffer anchor) Creates a spatial anchor. C SpecificationThe
DescriptionCreates an The runtime must avoid long blocking operations such as networking or disk operations for If After the anchor is created, the runtime should then adjust its position and orientation over time relative to other spaces so as to maintain maximum alignment to its original real-world location, even if that changes the anchor’s relationship to the original Valid Usage (Implicit)
Return Codes
See Also
| |
| xrCreateSpatialAnchorSpaceMSFT | back to summary |
|---|---|
| public static int xrCreateSpatialAnchorSpaceMSFT(XrSession session, XrSpatialAnchorSpaceCreateInfoMSFT createInfo, PointerBuffer space) Creates a space from a spatial anchor. C SpecificationThe
DescriptionCreates an Multiple Valid Usage (Implicit)
Return Codes
See Also
| |
| xrDestroySpatialAnchorMSFT | back to summary |
|---|---|
| public static int xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor) Destroys a spatial anchor. C SpecificationThe
Description
Valid Usage (Implicit)
Thread Safety
Return Codes
See Also
| |