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.
In this article
Instance properties
GamepadPose.hasOrientationRead onlyExperimentalReturns a boolean indicating whether the gamepad is capable of returning orientation information (
true) or not (false).GamepadPose.hasPositionRead onlyExperimentalReturns a boolean indicating whether the gamepad is capable of returning position information (
true) or not (false).GamepadPose.positionRead onlyExperimentalReturns the position of the
Gamepadas a 3D vector.GamepadPose.linearVelocityRead onlyExperimentalReturns the linear velocity of the
Gamepad, in meters per second.GamepadPose.linearAccelerationRead onlyExperimentalReturns the linear acceleration of the
Gamepad, in meters per second per second.GamepadPose.orientationRead onlyExperimentalReturns the orientation of the
Gamepad, as a quaternion value.GamepadPose.angularVelocityRead onlyExperimentalReturns the angular velocity of the
Gamepad, in radians per second.GamepadPose.angularAccelerationRead onlyExperimentalReturns the angular acceleration of the
Gamepad, in meters per second per second.
Examples
TBD.
Specifications
| Specification |
|---|
| Gamepad Extensions> # gamepadpose-interface> |