Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:all-features:device-sensors [2018/09/13 09:28]
wendigo grammar
gdevelop5:all-features:device-sensors [2020/12/26 13:56] (current)
Line 1: Line 1:
 ====== Device sensors Extension ====== ====== Device sensors Extension ======
-This extension gives access to the sensors which can be found in most mobile devices.+This powerful extension gives you access to the sensors that can be found in most mobile devices.
  
 ===== Orientation sensor ===== ===== Orientation sensor =====
Line 49: Line 49:
  
 This action activates the orientation sensor so that it begins to deliver alpha, beta and gamma values. This action activates the orientation sensor so that it begins to deliver alpha, beta and gamma values.
-Turn this off again when you no longer need the sensor to save some processing time and phone battery.+Turn this off when you no longer need the sensor to save some processing time and phone battery.
  
 **Deactivate Orientation Sensor** **Deactivate Orientation Sensor**
Line 60: Line 60:
 **Is Absolute** **Is Absolute**
  
-This value indicates if the orientation data are absolute values, in reference to the Earth's coordinates (value 1) or using an arbitrary frame which is determined by the device (value 0).+This value indicates that the orientation data is in absolute values. In reference to the Earth's coordinates (value 1) or using an arbitrary frameis determined by the device (value 0).
  
 **Alpha Value** **Alpha Value**
Line 79: Line 79:
 You can access the motion data along an axis via the "x", "y", "z" values and the rotation data around an axis via "alpha", "beta" and "gamma" which are explained in the next section. You can access the motion data along an axis via the "x", "y", "z" values and the rotation data around an axis via "alpha", "beta" and "gamma" which are explained in the next section.
  
-<note>The motion sensor rotation values (alpha, beta, gamma) are currently badly supported on mobile devices. Better calculate the value from the orientation data</note>+<note>The motion sensor rotation values (alpha, beta, gamma) are currently badly supported on mobile devices. It would currently be better to calculate the value from the orientation data</note>
  
 ==== Axes explained ==== ==== Axes explained ====
Line 85: Line 85:
 {{:gdevelop5:all-features:motion_acceleration_x.png?nolink|}} {{:gdevelop5:all-features:motion_acceleration_x.png?nolink|}}
  
-This value shows the acceleration along the x-axis. If you move your device along the longer edge the x value will increase.+This value shows the acceleration along the x-axis. If you move your device along the longer edgethe x value will increase.
  
 ===Acceleration Y=== ===Acceleration Y===
 {{:gdevelop5:all-features:motion_acceleration_y.png?nolink|}} {{:gdevelop5:all-features:motion_acceleration_y.png?nolink|}}
  
-This value shows the acceleration along the y-axis. If you move your device along the smaller edge the y value will increase.+This value shows the acceleration along the y-axis. If you move your device along the smaller edgethe y value will increase.
  
 ===Acceleration Z=== ===Acceleration Z===
 {{:gdevelop5:all-features:motion_acceleration_z.png?nolink|}} {{:gdevelop5:all-features:motion_acceleration_z.png?nolink|}}
  
-This value shows the acceleration along the z-axis. If you move your device up or down the z value will increase.+This value shows the acceleration along the z-axis. If you move your device up or downthe z value will increase.
  
 ===Rotation alpha=== ===Rotation alpha===
Line 105: Line 105:
 {{:gdevelop5:all-features:motion_beta.png?nolink|}} {{:gdevelop5:all-features:motion_beta.png?nolink|}}
  
-This value shows the acceleration around the x-axis. If you hold your device in landscape mode with a hand on each side you can turn your device around the x-axis and the beta value will increase.+This value shows the acceleration around the x-axis. If you hold your device in landscape mode with a hand on each sideyou can turn your device around the x-axis and the beta value will increase.
  
 ===Rotation gamma=== ===Rotation gamma===
 {{:gdevelop5:all-features:motion_gamma.png?nolink|}} {{:gdevelop5:all-features:motion_gamma.png?nolink|}}
  
-This value shows the acceleration around the y-axis. If you hold your device in portrait mode with a hand on each side you can turn your device around the y-axis and the beta value will increase.+This value shows the acceleration around the y-axis. If you hold your device in portrait mode with a hand on each sideyou can turn your device around the y-axis and the beta value will increase.
  
 ==== Conditions ==== ==== Conditions ====
Line 146: Line 146:
 **Activate Motion Sensor** **Activate Motion Sensor**
  
-This action activates the motion sensor so that it begins to deliver x, a, z, alpha, beta and gamma values.+This action activates the motion sensor so that it begins to deliver x, y, z, alpha, beta and gamma values.
 Turn this off again when you no longer need the sensor to save some processing time and phone battery. Turn this off again when you no longer need the sensor to save some processing time and phone battery.
  
 **Deactivate Motion Sensor** **Deactivate Motion Sensor**
  
-This action deactivates the motion sensor so that it stops delivering x, a, z, alpha, beta and gamma values.+This action deactivates the motion sensor so that it stops delivering x, y, z, alpha, beta and gamma values.
  
 ==== Expressions ==== ==== Expressions ====
Line 179: Line 179:
  
 The "gamma" rotation. (m/s²) The "gamma" rotation. (m/s²)
 +
 +{{ :gdevelop5:all-features:devicesensorsevents.png |}}