--- title: XRBoundedReferenceSpace slug: Web/API/XRBoundedReferenceSpace tags: - API - AR - Boundary - Interface - Reference - VR - Virtual - WebXR - WebXR API - WebXR Device API - XR - XRBoundedReferenceSpace - augmented translation_of: Web/API/XRBoundedReferenceSpace --- <p>{{APIRef("WebXR Device API")}}{{secureContext_header}}</p> <p>.<span class="seoSummary"><a href="/ja/docs/Web/API/WebXR_Device_API">WebXR Device API</a> の <strong><code>XRBoundedReferenceSpace</code></strong> インターフェイスは、事前設定された境界を持つ仮想世界の<a href="/ja/docs/Web/API/WebXR_Device_API/Geometry">参照空間</a>を記述します。 これは {{domxref("XRReferenceSpace")}} を拡張して、ビューアーの位置の周囲の本質的に制限のない空間を記述します。</span> これらの境界は、点の配列を使用して定義し、各点は、ユーザーがその中で移動することができる多角形の頂点を定義します。</p> <p>これは通常、XR システムがユーザーの開始位置から限られた距離内でユーザーの物理的な移動を追跡できる場合に使用します。 指定された境界は、実際には、WebXR サイトまたはアプリケーションがユーザーが現実世界の壁やその他の障害物と衝突するのを防ぐために、ユーザーがいる部屋の形状とサイズを表す場合があります。 少なくとも、境界は、XR デバイスがユーザーの移動を追跡できる領域を示します。 制限付き空間の仕組みとその有用性の詳細については、<a href="/ja/docs/Web/API/WebXR_Device_API/Bounded_reference_spaces">制限付き参照空間の使用</a>の記事を参照してください。</p> <h2 id="Properties" name="Properties">プロパティ</h2> <p><em>{{domxref("XRReferenceSpace")}} のプロパティに加えて、<code>XRBoundedReferenceSpace</code> には次のものが含まれています。</em></p> <dl> <dt>{{domxref("XRBoundedReferenceSpace.boundsGeometry", "boundsGeometry")}} {{ReadOnlyInline}}</dt> <dd>{{domxref("DOMPointReadOnly")}} オブジェクトの配列。 各オブジェクトは、ユーザーが留まる必要がある境界を定義する多角形の頂点を定義します。 これらの頂点は、ビューアーの位置の周囲を<em>時計回り</em>に移動するように並べ替える<em>必要があります</em>。</dd> </dl> <h2 id="Methods" name="Methods">メソッド</h2> <p><em><code>XRBoundedReferenceSpace</code> は、その親インターフェイスである {{domxref("XRReferenceSpace")}} のメソッドを継承します。 それ以上のメソッドはありません。</em></p> <h2 id="Specifications" name="Specifications">仕様</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">仕様</th> <th scope="col">状態</th> <th scope="col">コメント</th> </tr> <tr> <td>{{SpecName('WebXR','#xrboundedreferencespace-interface','XRBoundedReferenceSpace')}}</td> <td>{{Spec2('WebXR')}}</td> <td>初期定義</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <div class="hidden"> <p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p> </div> <p>{{Compat("api.XRBoundedReferenceSpace")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li><a href="/ja/docs/Web/API/WebXR_Device_API">WebXR Device API</a></li> <li><a href="/ja/docs/Web/API/WebXR_Device_API/Geometry">WebXR の幾何学と参照空間</a></li> <li><a href="/ja/docs/Web/API/WebXR_Device_API/Cameras">視点とビューアー: WebXR でのカメラのシミュレーション</a></li> </ul>