Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/3
Emulates a gyro based on the compass and the accelerometer. Can be used for implementing VR on devices with no gyro sensor.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2019.4.0f1
Compatible
Compatible
Compatible
Additional compatibility information

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.

Description

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

https://www.danielpolish.hu/guides/virtualgyro/index.html


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.

Virtual Gyro

(not enough ratings)
2 users have favourite this asset
(2)
$4.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
5.4 MB
Latest version
1.0
Latest release date
Oct 1, 2021
Original Unity version
2018.4.24
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR