MotionSensor_v2 Op

MotionSensor

get values from the device motion sensor mobile


alpha value represents the motion of the device around the z axis, represented in degrees with values ranging from 0 to 360.

beta value represents the motion of the device around the x axis, represented in degrees with values ranging from -180 to 180. This represents a front to back motion of the device.

gamma value represents the motion of the device around the y axis, represented in degrees with values ranging from -90 to 90. This represents a left to right motion of the device.

to use in an iframe, make sure it has gyroscope and accelerometer permissions enabled.


Full Name
  • Ops.Devices.Mobile.MotionSensor_v2
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorCreated
githubMaintained by Team


Op is missing in example patch!

Example Patch MotionSensor DeviceOrientationCamera Example

Open In Editor

INPUT PORTS


Mul Orientation (Number)
Request Permissions (Trigger)

OUTPUT PORTS


Orientation Alpha (Number)
Orientation Beta (Number)
Orientation Gamma (Number)
Acceleration X (Number)
Acceleration Y (Number)
Acceleration Z (Number)
Acceleration X no gravity (Number)
Acceleration Y no gravity (Number)
Acceleration Z no gravity (Number)
Rotation Rate Alpha (Number)
Rotation Rate Beta (Number)
Rotation Rate Gamma (Number)
Permissions (String)
Object (Object)

Changelog

Patches using MotionSensor_v2

  • Examples
  • Public
  • My Patches