Search code examples
aframe

how to get guardian boundary in a-frame


I am working on a vr game that adapts the world to the players movement in their playspace.

To do so I need a list of the edges of the boundary of the gaurdian. How do you get that in a-frame.


Solution

  • Bounded-floor is the property that that gives this https://aframe.io/docs/1.3.0/components/webxr.html#properties2_bounded_floor

    There is more info here in the webXR spec: https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API/Geometry

    search that page for bounded-floor and it will take you to some more details, links and info.