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 Hulock · May 18, 2013 at 08:51 PM · buildmouseaxisfaster

GetAxis("Mouse X") - suddenly faster in build

Hi

I have a problem with Input.GetAxis("Mouse X")

It has normal and consistend speed in the editor.

In the build game everything runs faster of course but the GetAxis is frame-rate independent so the speed is fine at first.

But suddenly after I used my mouse several times to turn the character with the GetAxis it switches to higher speed. Little mouse movements are very rapid character turns from then on. It stickt so that. The Y-axis is then faster too. This "suddenly faster-problem" happens only in the built game.

How do I have to use Input.GetAxis correctly? Is anything loading in the background and when finished I get higher GetAxis values? Every other time-depending movements are correct.

Comment
Add comment · Show 5
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 Hulock · May 19, 2013 at 01:13 PM 0
Share

I don't use Time.deltaTime in combination with Input.GetAxis("$$anonymous$$ouse X").

I only use Time.deltaTime with the other movements and counters :)

avatar image ExTheSea · May 19, 2013 at 01:15 PM 0
Share

I converted your answer to a comment. Next time please use the comments next time to reply to someone. Answers should only be used to answer the main question.

avatar image sparkzbarca · May 19, 2013 at 02:12 PM 0
Share

post your code.

no nothing is loading that would slow mouse.

avatar image Hulock · May 20, 2013 at 11:31 PM 0
Share

float takeValue = Input.GetAxis("$$anonymous$$ouse X");

transform.Rotate(0,takeValue,0);

It's a simple script that turns the character with the mouse in the update.

avatar image aaronjbaptiste · Oct 30, 2015 at 10:54 AM 0
Share

sorry to necro, but did you ever find a solution to this problem? I'm getting the same thing.

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Eric5h5 · May 19, 2013 at 04:04 AM

I suspect you're using Time.deltaTime with mouse movement, which is the opposite of what you actually want to do, since mouse movement is already framerate-independent to begin with. So using Time.deltaTime makes it vary depending on the framerate.

Comment
Add comment · 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

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

16 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

Related Questions

Distribute terrain in zones 3 Answers

Mouse look Y axis sensitivity doesn't change 0 Answers

Audio to play with mouse axis. 0 Answers

How do I drag an object without Y transformation? 2 Answers

Mouse look and character model? 1 Answer


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