blob: d259ca2ee2f8225ff82a807cfcab7b9b9a15f863 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
---
title: VRDisplayCapabilities.hasPosition
slug: Web/API/VRDisplayCapabilities/hasPosition
tags:
- Виртуальная реальность
translation_of: Web/API/VRDisplayCapabilities/hasPosition
---
<div>{{APIRef("WebVR API")}}{{SeeCompatTable}}</div>
<p>The <strong><code>hasPosition</code></strong> read-only property of the {{domxref("VRDisplayCapabilities")}} interface returns a {{domxref("Boolean")}} stating whether the VR display can track and return position information.</p>
<h2 id="Синтаксис">Синтаксис</h2>
<pre class="brush: js">var hasItGotPosition = vrDisplayCapabilitiesInstance.<code>hasPosition</code>;</pre>
<h3 id="Value">Value</h3>
<p>A {{domxref("Boolean")}}.</p>
<h2 id="Примеры">Примеры</h2>
<p>{{page("/Web/API/VRDisplayCapabilities", "Examples")}}</p>
<h2 id="Спецификации">Спецификации</h2>
{{Specifications}}
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{Compat("api.VRDisplayCapabilities.hasPosition")}}</p>
<h2 id="See_also">See also</h2>
<ul>
<li><a href="/en-US/docs/Web/API/WebVR_API">WebVR API homepage</a>.</li>
<li><a href="http://mozvr.com/">MozVr.com</a> — demos, downloads, and other resources from the Mozilla VR team.</li>
</ul>
|