Skip to main content
Gyroscope Trigger

A continuous trigger that fires based on the device's gyroscope.

Updated over 3 weeks ago

Overview

Gyroscope triggers fire as the user rotates their device around the X, Y, and/or Z axis. You can change the range of degree values that the trigger will measure.


Trigger Properties

Axis

Set the gyroscope trigger's axis of rotation to the X, Y, or Z axis:

  • X: Fires when the user rotates around the X axis or when the device is tilted towards or away from the user.

  • Y: Fires when the user rotates around the Y axis or when the device is tilted to the left or right.

  • Z: Fires when the user rotates around the Z axis or when the device is rotated clockwise or counterclockwise.

  • Any: Fires when the user rotates their device around any axis.

From

Set the minimum rotation value, in degrees, that the gyroscope trigger will fire. The From value must be less than the To value and can be negative.

To

Set the maximum rotation value, in degrees, that the gyroscope trigger will fire. The To value must be larger than the From value and can be negative.

X Offset

Set the starting orientation for the X Axis. This property is only visible if the Axis is set to X or Any.

Y Offset

Set the starting orientation for the Y Axis. This property is only visible if the Axis is set to Y or Any.

Z Offset

Set the starting orientation for the Z Axis. This property is only visible if the Axis is set to Z or Any.

Auto Start

Choose if the gyroscope will automatically start measuring orientation when the page loads. If this property is off, the trigger must be started with a Set Gyroscope action.

Is Enabled

Set if the trigger should fire when the trigger's conditions are met.


Expression Editor Properties

Max

trigger.max

Max degree value set on the trigger.

Min

trigger.min

Min degree value set on the trigger.

Axis

trigger.axis

Axis set on the trigger.

Rotation X

trigger.rotationX

Rotation around the X axis in degrees.

X Offset

trigger.xOffset

X Offset set on the trigger.

Rotation Y

trigger.rotationY

Rotation around the Y axis in degrees.

Y Offset

trigger.yOffset

Y Offset set on the trigger.

Rotation Z

trigger.rotationZ

Rotation around the Z axis in degrees.

Z Offset

trigger.zOffset

Z Offset set on the trigger.

Is Enabled

trigger.isEnabled

Whether the trigger is enabled or disabled.

Did this answer your question?