Publisher | DanielPolish |
---|---|
File size | 5.43MB |
Number of files | 120 |
Latest version | 1 |
Latest release date | 2021-10-01 11:24:11 |
First release date | 2021-10-01 11:24:11 |
Supported Unity versions | 2018.4.2 or higher |
What this tool does
This tool allows you to emulate a gyro on devices which don't have a gyro sensor, but an accelerometer and a compass.
The main static class (VirtualGyro.Gyro) calculates the phone's attitude from the compass and accelerometer input.
When it is useful
This tool is useful for VR game developers who want to increase the number of devices supported.
Features
- Property names are matching the properties of Input.gyro (attitude, updateIntervall, enabled, gravity)
- Supported property
- Built-in input smoothening system (You can also implement your own.)
- No setup needed. Just import it, and you can already call VirtualGyro.Gyro.enabled = true;
- Test mode (VirtualGyro.Gyro.Testmode), which simulates a constant rotation around the Y axis.
- Offline HTML and PDF documentation
- The documentation includes two guides. One for general usege, and another one for using custom input smootheners.
- Example scene
See it for yourself
To see this tool in action, check out the game for which I have developed it originally.
You can find more info about it on this website:
https://danielpolish.hu/projects/flightsim.html
(The VR tickbox on the main menu should have a dotted tick in it, to use Virtual Gyro.)
Documentation
The package comes with an offline HTML documentation (+ guide), but it can also be viewed at