Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by difficultnerd · Jul 17, 2014 at 06:47 PM · inputmobilegyro

What is with Input.Gyro.UpdateInterval?

Can anyone can shed light on Unity's Input.Gyro.UpdateInterval?

The documentation doesn't explain what units these update intervals are measured in, or what the effect of manipulating this value is. Or why you'd prefer say 0.001 over 0.1 or 10?

That would be awesome because as far as confirming the existence of the function and a requirement to set it, most examples on the of Gyro control I've seen pick a value which seems to be an arbitrary float that approaches zero.

If possible I'd prefer to understand what's happening. :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by zharik86 · Jul 17, 2014 at 07:01 PM

The Input.Gyro.UpdateInterval parameter is told to a device gyroscope with what frequency by him will update data. Both very large number, and very small doesn't approach. It is necessary to select the optimum. For example, if our Input.Gyro.UpdateInterval is equal to 10 seconds, in value of 0 seconds the gyroscope will show certain data, and then as though you didn't twist a device within 10 seconds these data not to change. Also it isn't necessary to forget that even if values are given in digital value, the gyroscope is the physical device. So it has tolerances.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image difficultnerd · Jul 18, 2014 at 03:25 AM 0
Share

Is it fair to say that the Input.Gyro.UpdateInterval parameter is how often (measured in seconds) the hardware gyroscope is "checked" for changes. If this is set to 10.0 it will check every ten seconds, if it is set to 0.1 it will be checked every 1/10 of a second?

avatar image zharik86 · Jul 18, 2014 at 06:03 AM 0
Share

@difficultnerd Yes, practically as you speak. But it will be only program restriction. The gyroscope in itself obtains data depending on its characteristics. And we simply restrict to the patametr Input.Gyro.UpdateInterval access on time to selection of data from a gyroscope.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can i get OnPointerExit to work on mobile? 1 Answer

controle of an gameobject 1 Answer

How to make responsive Touch inputs? 1 Answer

how to move an object in 4 directions by tilting device when not parallel to the ground 0 Answers

is possible press 2 buttons at the same time Mobile touch? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges