Accelerometer: Difference between revisions
Nikitaivanov (talk | contribs) (Use image template) |
RandomName (talk | contribs) m (Fixed 3 typo errors) |
||
Line 11: | Line 11: | ||
* The accelerometer makes the screen orientation unchangeable during gameplay when the direction output is connected to anything. | * The accelerometer makes the screen orientation unchangeable during gameplay when the direction output is connected to anything. | ||
* The accelerometer is device- | * The accelerometer is device-dependent, meaning it will behave differently on different devices. Some may not even have one at all. | ||
== Examples == | == Examples == |
Revision as of 13:13, 3 June 2024
Accelerometer
Type | Script block |
Collider | None |
Folder | Game |
Ports | |
---|---|
Outputs | Direction |
Outputs the tilt direction of the device.
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.
Examples
The accelerometer by itself is very jumpy and not smooth at all, this can be fixed with a LERP script:
