Class FBSpatialEntity

java.lang.Object
org.lwjgl.openxr.FBSpatialEntity

public class FBSpatialEntity extends Object
The XR_FB_spatial_entity extension.

This extension enables applications to use spatial entities to specify world-locked frames of reference. It enables applications to persist the real world location of content over time and contains definitions for the Entity-Component System. All Facebook spatial entity and scene extensions are dependent on this one.

We use OpenXR XrSpace handles to give applications access to spatial entities such as Spatial Anchors. In other words, any operation which involves spatial entities uses XrSpace handles to identify the affected spatial entities.

In order to enable the functionality of this extension, you must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.

This extension allows:

  • An application to create a Spatial Anchor (a type of spatial entity).
  • An application to enumerate supported components for a given spatial entity.
  • An application to enable or disable a component for a given spatial entity.
  • An application to get the status of a component for a given spatial entity.