Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The createAnchor() method of the XRFrame interface creates a free-floating XRAnchor which will be fixed relative to the real world.
See XRHitTestResult.createAnchor() for creating an anchor from a hit test result that is attached to a real-world object.