Files
apt-nl-map/static/Magic4/js/three.js-dev/docs/examples/zh/controls/DeviceOrientationControls.html
2024-12-04 10:21:04 +08:00

96 lines
1.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>设备朝向控制器([name]</h1>
<p class="desc">
通过使用设备朝向来确定摄像机的朝向。
</p>
<h2>例子</h2>
<p>[example:misc_controls_deviceorientation misc / controls / deviceorientation ]</p>
<h2>构造函数</h2>
<h3>[name]( [param:Camera object] )</h3>
<p>
<p>
[page:Camera object]: 被控制的摄像机。
</p>
<p>
创建一个新的 [name] 实例。
</p>
</p>
<h2>Events</h2>
<h3>change</h3>
<p>
Fires when the camera has been transformed by the controls.
</p>
<h2>属性</h2>
<h3>[property:Number alphaOffset]</h3>
<p>
alpha角偏移量以弧度表示默认为*0*。
</p>
<h3>[property:Object deviceOrientation]</h3>
<p>
当前 *deviceorientation* 事件的对象。
</p>
<h3>[property:Boolean enabled]</h3>
<p>
是否启用控制器。
</p>
<h3>[property:Camera object]</h3>
<p>
被控制的摄像机。
</p>
<h3>[property:Number screenOrientation]</h3>
<p>
相对于设备自然朝向的视口朝向以角度表示增量为90。默认为*0*。
</p>
<h2>方法</h2>
<h3>[method:null connect] ()</h3>
<p>
增加控制器的事件监听,并启用控制器。
</p>
<h3>[method:null disconnect] ()</h3>
<p>
移除控制器的事件监听,并禁用控制器。
</p>
<h3>[method:null dispose] ()</h3>
<p>
若不再需要该控制器,则应当调用此函数。
</p>
<h3>[method:null update] ()</h3>
<p>
更新控制器,常被用在动画循环中。
</p>
<h2>源代码</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/controls/DeviceOrientationControls.js examples/jsm/controls/DeviceOrientationControls.js]
</p>
</body>
</html>