The GamepadPose interface of the Gamepad API represents the pose a WebVR controller at a given timestamp (which includes orientation, velocity, and acceleration information.)
The GamepadPose interface of the Gamepad API represents the pose a WebVR controller at a given timestamp (which includes orientation, velocity, and acceleration information.)
(angular-acceleration this)
Property.
[Read Only] [Experimental]
The angularAcceleration read-only property of the web.vr.GamepadPose
returns an array representing the angular acceleration vector
the web.gamepad.Gamepad
, in meters per second per second.
var myGamepadAngAcc = gamepadPoseInstance.angularAcceleration;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularAcceleration
Property. [Read Only] [Experimental] The angularAcceleration read-only property of the `web.vr.GamepadPose` returns an array representing the angular acceleration vector the `web.gamepad.Gamepad`, in meters per second per second. `var myGamepadAngAcc = gamepadPoseInstance.angularAcceleration;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularAcceleration`
(angular-velocity this)
Property.
[Read Only] [Experimental]
The angularVelocity read-only property of the web.vr.GamepadPose
returns an array representing the angular velocity vector of
web.gamepad.Gamepad
, in radians per second.
var myGamepadAngVel = gamepadPoseInstance.angularVelocity;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularVelocity
Property. [Read Only] [Experimental] The angularVelocity read-only property of the `web.vr.GamepadPose` returns an array representing the angular velocity vector of `web.gamepad.Gamepad`, in radians per second. `var myGamepadAngVel = gamepadPoseInstance.angularVelocity;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularVelocity`
(has-orientation this)
Property.
[Read Only] [Experimental]
The hasOrientation read-only property of the web.vr.GamepadPose
returns a js.Boolean
stating whether the web.gamepad.Gamepad
track and return orientation information.
var hasItGotOrientation = gamepadPoseInstance.hasOrientation;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasOrientation
Property. [Read Only] [Experimental] The hasOrientation read-only property of the `web.vr.GamepadPose` returns a `js.Boolean` stating whether the `web.gamepad.Gamepad` track and return orientation information. `var hasItGotOrientation = gamepadPoseInstance.hasOrientation;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasOrientation`
(has-position this)
Property.
[Read Only] [Experimental]
The hasPosition read-only property of the web.vr.GamepadPose
returns a js.Boolean
stating whether the web.gamepad.Gamepad
track and return position information.
var hasItGotPosition = gamepadPoseInstance.hasPosition;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasPosition
Property. [Read Only] [Experimental] The hasPosition read-only property of the `web.vr.GamepadPose` returns a `js.Boolean` stating whether the `web.gamepad.Gamepad` track and return position information. `var hasItGotPosition = gamepadPoseInstance.hasPosition;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasPosition`
(linear-acceleration this)
Property.
[Read Only] [Experimental]
The linearAcceleration read-only property of the web.vr.GamepadPose
returns an array representing the linear acceleration vector
the web.gamepad.Gamepad
, in meters per second per second.
var myGamepadLinAcc = gamepadPoseInstance.linearAcceleration;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearAcceleration
Property. [Read Only] [Experimental] The linearAcceleration read-only property of the `web.vr.GamepadPose` returns an array representing the linear acceleration vector the `web.gamepad.Gamepad`, in meters per second per second. `var myGamepadLinAcc = gamepadPoseInstance.linearAcceleration;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearAcceleration`
(linear-velocity this)
Property.
[Read Only] [Experimental]
The linearVelocity read-only property of the web.vr.GamepadPose
returns an array representing the linear velocity vector of the
in meters per second.
var myGamepadLinVel = gamepadPoseInstance.linearVelocity;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearVelocity
Property. [Read Only] [Experimental] The linearVelocity read-only property of the `web.vr.GamepadPose` returns an array representing the linear velocity vector of the in meters per second. `var myGamepadLinVel = gamepadPoseInstance.linearVelocity;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearVelocity`
(orientation this)
Property.
[Read Only] [Experimental]
The orientation read-only property of the web.vr.GamepadPose
returns the orientation of the web.gamepad.Gamepad
, as a quarternion
var myGamepadOrientation = gamepadPoseInstance.orientation;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/orientation
Property. [Read Only] [Experimental] The orientation read-only property of the `web.vr.GamepadPose` returns the orientation of the `web.gamepad.Gamepad`, as a quarternion `var myGamepadOrientation = gamepadPoseInstance.orientation;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/orientation`
(position this)
Property.
[Read Only] [Experimental]
The position read-only property of the web.vr.GamepadPose
interface
the position of the web.gamepad.Gamepad
as a 3D vector.
var myGamepadPosition = gamepadPoseInstance.position;
See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/position
Property. [Read Only] [Experimental] The position read-only property of the `web.vr.GamepadPose` interface the position of the `web.gamepad.Gamepad` as a 3D vector. `var myGamepadPosition = gamepadPoseInstance.position;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/position`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close