View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2018.4.24 or later
- Package size
- 5.4 MB
- Files
- 120
- Favorites
- 3
- Views in the past week
- 3
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
Virtual Gyro
- Price drop
Emulates a gyro based on the compass and the accelerometer. Can be used for implementing VR on devices with no gyro sensor.
Lowest recorded price
Get 29% off on Asset Store (opens in new tab)Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 2
Virtual Gyro screenshot 1
About this asset
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
From the publisher's Asset Store listing.
Technical details
This tool had only been tested (by me) on Android, but since it doesn't have any Android specific code, it should work on iOS as well.
The legacy shaders used in the demo scene may not be supported on render pipelines other than the built-in one; However, the tool itself is a C# library which is independent of the render pipeline used.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2019.4.0f1 | Compatible | Compatible | Compatible | Compatible |
The legacy shaders used in the demo scene may not be supported on render pipelines other than the built-in one; However, the tool itself is a C# library which is independent of the render pipeline used.
As listed on the Asset Store.