Demonstrations


Accelerometer
It is latest measured acceleration of a mobile device or a device with accelerometer in three-dimensional space (Technologies, 2021).
​
Here, the resources are downloaded from the website given in the book, a script is written and attached to the ball. Here, Ball rotates according to the tilt of the mobile that utilizes the accelerometer. Also, the Quaternion and Euler law is applied in the code. Video of a game play and two screen shots are provided as a part of the demonstration.
Bibiliography
Technologies, U., 2021. Unity - Scripting API: Input.acceleration. [online] Docs.unity3d.com. Available at: <https://docs.unity3d.com/ScriptReference/Input-acceleration.html> [Accessed 19 February 2021].
​
This reference is selected because it is documentation from the Unity providing description and code snippets.
​
YouTube. 2021. Unity Mobile - Accelerometer - Unity 3D [Tutorial]. [online] Available at: <https://www.youtube.com/watch?v=fsEkZLBeTJ8> [Accessed 19 February 2021].
​
This reference is selected as in this video the developer demonstrates how to utilize rigid body to follow the accelerometer reading in three dimension and move accordingly. It is amazingly simple and beginner friendly and he also show what happens if there is wrong in the code. He also teaches the way to utilize the debugger in the video which for this one I have not implemented.