Liking cljdoc? Tell your friends :D

web.vr.GamepadPose

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.)
raw docstring

angular-accelerationcljs

(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`
sourceraw docstring

angular-velocitycljs

(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`
sourceraw docstring

has-orientationcljs

(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`
sourceraw docstring

has-positioncljs

(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`
sourceraw docstring

linear-accelerationcljs

(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`
sourceraw docstring

linear-velocitycljs

(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`
sourceraw docstring

orientationcljs

(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`
sourceraw docstring

positioncljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close