Accelerometer

Revision as of 20:23, 16 May 2024 by Osmo (talk | contribs) (Updated and revisited the page)

Outputs the tilt direction of the device.

Accelerometer
Accelerometer.png
TypeScript block
ColliderNone
FolderGame
Ports
Outputs Direction

Notes

  • The accelerometer makes the screen orientation unchangeable during gameplay when the direction output is connected to anything.
  • The accelerometer is device-dependant, meaning it will behave diffrently on diffrent devices. Some may not even have one at all.

Examples

The accelerometer by itself is very jumpy and not smooth at all, this can be fixed with a LERP script: