GamepadPose: position プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
GamepadPose
インターフェイスの読み取り専用プロパティ position
は、Gamepad
の位置を 3 次元ベクトルで返します。
座標系は以下の通りです。
- X の正の方向はユーザーの右方向です。
- Y の正の方向は上です。
- Z の正の方向はユーザーの後ろです。
位置は原点 (センサーから値が最初に取得された時の位置) からのメートル単位で計測されます。
値
Float32Array
、もしくはゲームパッドが位置データを提供できないときは null
です。
メモ:
ユーザーエージェントは、いくつかの方法でエミュレートされた位置の値を提供する可能性があります。そうする場合でも、GamepadPose.hasPosition
は false
を報告するべきです。
例
TBD
仕様書
Specification |
---|
Gamepad Extensions # dom-gamepadpose-position |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
position |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.