Firefox Tomorrow

web api instance property

GamepadPose: linearVelocity property

View on MDN ↗

Limited availability

The linearVelocity read-only property of the GamepadPose interface returns an array representing the linear velocity vector of the 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 Float32Array, or null if the gamepad is not able to provide linear velocity data.

Examples

TBD

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also