GamepadPose: linearAcceleration property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

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

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

In other words, the current acceleration of the sensor, along the x, y, and z axes.

Value

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

Examples

TBD

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also