Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. GamepadPose

GamepadPose

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

TheGamepadPose interface of theGamepad API represents the pose of aWebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information).

This interface is accessible through theGamepad.pose property.

Instance properties

GamepadPose.hasOrientationRead onlyExperimental

Returns a boolean indicating whether the gamepad is capable of returning orientation information (true) or not (false).

GamepadPose.hasPositionRead onlyExperimental

Returns a boolean indicating whether the gamepad is capable of returning position information (true) or not (false).

GamepadPose.positionRead onlyExperimental

Returns the position of theGamepad as a 3D vector.

GamepadPose.linearVelocityRead onlyExperimental

Returns the linear velocity of theGamepad, in meters per second.

GamepadPose.linearAccelerationRead onlyExperimental

Returns the linear acceleration of theGamepad, in meters per second per second.

GamepadPose.orientationRead onlyExperimental

Returns the orientation of theGamepad, as a quaternion value.

GamepadPose.angularVelocityRead onlyExperimental

Returns the angular velocity of theGamepad, in radians per second.

GamepadPose.angularAccelerationRead onlyExperimental

Returns the angular acceleration of theGamepad, in meters per second per second.

Examples

TBD.

Specifications

Specification
Gamepad Extensions
# gamepadpose-interface

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp