XRBoundedReferenceSpace class
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The WebXR Device API's interface describes a virtual world reference space which has preset boundaries. This extends XRReferenceSpace, which describes an essentially unrestricted space around the viewer's position. These bounds are defined using an array of points, each of which defines a vertex in a polygon inside which the user is allowed to move. This is typically used when the XR system is capable of tracking the user's physical movement within a limited distance of their starting position. The specified bounds may, in fact, describe the shape and size of the room the user is located in, in order to let the WebXR site or application prevent the user from colliding with the walls or other obstacles in the real world. At a minimum, the boundaries indicate the area in which the XR device is capable of tracking the user's movement. See the article Using bounded reference spaces for details on how bounded spaces work and why they're useful.
EventTarget
XRSpace
XRReferenceSpace
XRBoundedReferenceSpace
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- XRBoundedReferenceSpace()
-
factory
Properties
-
boundsGeometry
→ Iterable<
DOMPointReadOnly> -
Available on XRBoundedReferenceSpace, provided by the PropsXRBoundedReferenceSpace extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
onreset
↔ EventHandlerNonNull<
Event> ? -
Available on XRReferenceSpace, provided by the PropsXRReferenceSpace extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
getOffsetReferenceSpace(
XRRigidTransform originOffset) → XRReferenceSpace -
Available on XRReferenceSpace, provided by the PropsXRReferenceSpace extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited