Back to Content

GamepadPose: linearVelocity property

files/en-us/web/api/gamepadpose/linearvelocity/index.md

latest656 B
Original Source

{{APIRef("WebVR API")}}{{SeeCompatTable}}

The linearVelocity read-only property of the {{domxref("GamepadPose")}} interface returns an array representing the linear velocity vector of the {{domxref("Gamepad")}}, in meters per second.

In other words, the current velocity at which the sensor is moving along the x, y, and z axes.

Value

A {{jsxref("Float32Array")}}, or null if the gamepad is not able to provide linear velocity data.

Examples

TBD

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also