XRFrame

open class XRFrame(source)

Properties

Link copied to clipboard
external var createAnchor: (pose: XRRigidTransform, space: XRSpace) -> Promise<XRAnchor>?

Creates a new anchor using the given pose in the given reference space.

Link copied to clipboard
external val detectedMeshes: XRMeshSet?

XRFrame is extended to contain detectedMeshes attribute which contains all meshes that are still tracked in the frame.

Link copied to clipboard
external val detectedPlanes: XRPlaneSet?

XRFrame is extended to contain detectedPlanes attribute which contains all planes that are still tracked in the frame.

Link copied to clipboard
external var getJointPose: (joint: XRJointSpace, baseSpace: XRSpace) -> XRJointPose?
Link copied to clipboard
Link copied to clipboard
external val session: XRSession
Link copied to clipboard

All anchors tracked in the frame.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun getPose(space: XRSpace, baseSpace: XRSpace): XRPose?

Provides the pose of space relative to baseSpace as an XRPose, at the time represented by the XRFrame.

Link copied to clipboard
external fun getViewerPose(referenceSpace: XRReferenceSpace): XRViewerPose?

Provides the pose of the viewer relative to referenceSpace as an XRViewerPose, at the XRFrame's time.