Accelerometer
Outputs the tilt direction of the device.
Accelerometer
  | Type | Script block | 
| Collider | None | 
| Folder | Game | 
| 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-dependent, meaning it will behave differently on different devices. Some may not even have one at all.
- When the accelerometer is used in a calculation, the screen orientation locks.
Examples
The accelerometer by itself is very jumpy and not smooth at all, this can be fixed with a LERP script:
