Skip to main content

Device Orientation

Deprecated

This node is deprecated and kept only so existing projects keep working. It is not offered in the node picker for new use.

Deprecated device-orientation sensor exposing rotation X/Y/Z. No direct successor; use a Function node over the DeviceOrientation API.

The legacy Device Orientation node streams the device's rotation on three number outputs. It is deprecated and hidden from the picker; modern browsers gate the underlying API behind permission prompts the node predates.

When to use it

Do not use in new graphs — read the DeviceOrientation API from a Function node, handling the permission request explicitly.

At a glance

CategorySensors
Type nameGyroscope
Available inbrowser
SSR compatibilityclient-only — Device sensors only exist in the browser.
Provided bynoodl-viewer-react

Outputs

Values

NameTypeDefaultDescription
rotationXNumberFront-to-back tilt in degrees; it never updates on iOS, which requires a permission this node does not request
rotationYNumberLeft-to-right tilt in degrees; it never updates on iOS, which requires a permission this node does not request
rotationZNumberCompass heading in degrees; it never updates on iOS, which requires a permission this node does not request

Function

Generated

This page is generated from node-catalog-enriched.json. Do not edit it by hand — run npm run docs:nodes to regenerate, and fix the source enrichment instead.