GamepadPose
{{securecontext_header}} {{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.
Instance properties
{{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.
- : Returns the position of the
{{domxref("GamepadPose.linearVelocity")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Returns the linear velocity of the
{{domxref("Gamepad")}}, in meters per second.
- : Returns the linear velocity of the
{{domxref("GamepadPose.linearAcceleration")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Returns the linear acceleration of the
{{domxref("Gamepad")}}, in meters per second per second.
- : Returns the linear acceleration of the
{{domxref("GamepadPose.orientation")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Returns the orientation of the
{{domxref("Gamepad")}}, as a quaternion value.
- : Returns the orientation of the
{{domxref("GamepadPose.angularVelocity")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Returns the angular velocity of the
{{domxref("Gamepad")}}, in radians per second.
- : Returns the angular velocity of the
{{domxref("GamepadPose.angularAcceleration")}}{{ReadOnlyInline}}{{Experimental_Inline}}- : Returns the angular acceleration of the
{{domxref("Gamepad")}}, in meters per second per second.
- : Returns the angular acceleration of the
Examples
TBD.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}