Accelerometer: Difference between revisions
(Centered the image) |
Nikitaivanov (talk | contribs) (Use image template) |
||
Line 17: | Line 17: | ||
The accelerometer by itself is very jumpy and not smooth at all, this can be fixed with a LERP script: | The accelerometer by itself is very jumpy and not smooth at all, this can be fixed with a LERP script: | ||
{{Image|Accelerometer LERP.jpg|Smooth accelerometer}} | |||
[[Category:Blocks]] | [[Category:Blocks]] |
Revision as of 17:41, 17 May 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-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:
