| title | GamepadPose | |
|---|---|---|
| slug | Web/API/GamepadPose | |
| page-type | web-api-interface | |
| status |
|
|
| browser-compat | 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.
- {{domxref("GamepadPose.hasOrientation")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns a boolean indicating whether the gamepad is capable of returning orientation information (
true) or not (false).
- : Returns a boolean indicating whether the gamepad is capable of returning orientation information (
- {{domxref("GamepadPose.hasPosition")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns a boolean indicating whether the gamepad is capable of returning position information (
true) or not (false).
- : Returns a boolean indicating whether the gamepad is capable of returning position information (
- {{domxref("GamepadPose.position")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the position of the {{domxref("Gamepad")}} as a 3D vector.
- {{domxref("GamepadPose.linearVelocity")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the linear velocity of the {{domxref("Gamepad")}}, in meters per second.
- {{domxref("GamepadPose.linearAcceleration")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the linear acceleration of the {{domxref("Gamepad")}}, in meters per second per second.
- {{domxref("GamepadPose.orientation")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the orientation of the {{domxref("Gamepad")}}, as a quaternion value.
- {{domxref("GamepadPose.angularVelocity")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the angular velocity of the {{domxref("Gamepad")}}, in radians per second.
- {{domxref("GamepadPose.angularAcceleration")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the angular acceleration of the {{domxref("Gamepad")}}, in meters per second per second.
TBD.
{{Specifications}}
{{Compat}}