From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/gamepadpose/hasorientation/index.html | 58 +++++++++++++++++ files/ja/web/api/gamepadpose/index.html | 75 ++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 files/ja/web/api/gamepadpose/hasorientation/index.html create mode 100644 files/ja/web/api/gamepadpose/index.html (limited to 'files/ja/web/api/gamepadpose') diff --git a/files/ja/web/api/gamepadpose/hasorientation/index.html b/files/ja/web/api/gamepadpose/hasorientation/index.html new file mode 100644 index 0000000000..3079ad7eab --- /dev/null +++ b/files/ja/web/api/gamepadpose/hasorientation/index.html @@ -0,0 +1,58 @@ +--- +title: GamepadPose.hasOrientation +slug: Web/API/GamepadPose/hasOrientation +tags: + - API + - Experimental + - Gamepad API + - GamepadPose + - Property + - Reference + - Virtual Reality + - WebVR + - hasOrientation +translation_of: Web/API/GamepadPose/hasOrientation +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("GamepadPose")}} インターフェイスの hasOrientation 読み取り専用プロパティは、 {{domxref("Gamepad")}} が方向情報を返すことができるかどうかを示す {{domxref("Boolean")}} を返します。

+ +

構文

+ +
var hasItGotOrientation = gamepadPoseInstance.hasOrientation;
+ +

+ +

{{domxref("Boolean")}} 。

+ +

+ +

TBD

+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('GamepadExtensions', '#dom-gamepadpose-hasorientation', 'hasOrientation')}}{{Spec2('GamepadExtensions')}}初回定義
+ +

ブラウザー実装状況

+ +

{{Compat("api.GamepadPose.hasOrientation")}}

+ +

関連項目

+ + diff --git a/files/ja/web/api/gamepadpose/index.html b/files/ja/web/api/gamepadpose/index.html new file mode 100644 index 0000000000..05f7350392 --- /dev/null +++ b/files/ja/web/api/gamepadpose/index.html @@ -0,0 +1,75 @@ +--- +title: GamepadPose +slug: Web/API/GamepadPose +tags: + - API + - Experimental + - Gamepad + - GamepadPose + - Interface + - NeedsTranslation + - Reference + - TopicStub + - VR + - Virtual Reality + - WebVR +translation_of: Web/API/GamepadPose +--- +
{{APIRef("Gamepad API")}}{{SeeCompatTable}}
+ +

The GamepadPose interface of the Gamepad API represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.)

+ +

This interface is accessible through the {{domxref("Gamepad.pose")}} property.

+ +

Properties

+ +
+
{{domxref("GamepadPose.hasOrientation")}} {{readonlyInline}}
+
Returns a boolean indicating whether the gamepad is capable of returning orientation information (true) or not (false).
+
{{domxref("GamepadPose.hasPosition")}} {{readonlyInline}}
+
Returns a boolean indicating whether the gamepad is capable of returning position information (true) or not (false).
+
{{domxref("GamepadPose.position")}} {{readonlyInline}}
+
Returns the position of the {{domxref("Gamepad")}} as a 3D vector.
+
{{domxref("GamepadPose.linearVelocity")}} {{readonlyInline}}
+
Returns the linear velocity of the {{domxref("Gamepad")}}, in meters per second.
+
{{domxref("GamepadPose.linearAcceleration")}} {{readonlyInline}}
+
Returns the linear acceleration of the {{domxref("Gamepad")}}, in meters per second per second.
+
{{domxref("GamepadPose.orientation")}} {{readonlyInline}}
+
Returns the orientation of the {{domxref("Gamepad")}}, as a quarternion value.
+
{{domxref("GamepadPose.angularVelocity")}} {{readonlyInline}}
+
Returns the angular velocity of the {{domxref("Gamepad")}}, in radians per second.
+
{{domxref("GamepadPose.angularAcceleration")}} {{readonlyInline}}
+
Returns the angular acceleration of the {{domxref("Gamepad")}}, in meters per second per second.
+
+ +

Examples

+ +

TBD.

+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('GamepadExtensions', '#gamepadpose-interface', 'GamepadPose')}}{{Spec2('GamepadExtensions')}}Initial definition
+ +

Browser compatibility

+ +

{{Compat("api.GamepadPose")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf