blob: 7de0300c2f656132f9320b9963e440d2dc69c5fa (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
|
---
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>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
<tr>
<td>{{SpecName('WebVR 1.1', '#dom-vrdisplaycapabilities-hasposition', 'hasPosition')}}</td>
<td>{{Spec2('WebVR 1.1')}}</td>
<td>Initial definition</td>
</tr>
</tbody>
</table>
<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>
|