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 dot 1 · Aug 19, 2010 at 12:01 PM · buildxboxgamecontroller

2issues: Xbox Controller axis returns value that's constantly changing and a build problem.

two issues: even if I keep joystick (left/right analog stick, left/right trigger) still (for example right trigger pressed to the max) the value that's returned keeps shifting. It makes a difference (when it's multiplied by hundreds or thousands, as I need it) cause it makes the controlled object twitch. should that be normal? that, even if the Trigger is pressed down, it returns shifting values?

another thing is I have a build problem.

previous version of the script was making the character respond to buttons. after that, I changed the script and started to play around with axis. triggers, analog sticks. if I run it in editor, it's fine, but if I make a build, it always gives me the game which responds to buttons - not analog sticks/triggers. I'm sure there isn't any button-code around anymore. Any ideas what's going on?

Comment
Add comment · Show 3
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 alexnode · Aug 19, 2010 at 12:32 PM 0
Share

I assume that you might want to change the sensitivity and dead values a bit for using it for $$anonymous$$ilometers ins$$anonymous$$d of meters. The triggers are mapped from 0 to 1 as I read somewhere.

avatar image dot 1 · Aug 19, 2010 at 01:11 PM 0
Share

thanks alexnode, unfortunately, dead and sensitivity seems to be responsible for other behaviours. I played around with it already, doesn't change the fact that if I press completely down and hold, the values are still constantly changing.

avatar image skovacs1 · Aug 19, 2010 at 05:04 PM 0
Share

This should really have been split into 2 questions as per the FAQ. Could you provide more details about your build problem? Errors? Warnings? $$anonymous$$aybe some code (particularly how you are retrieving input)? Did you clear out the button inputs on the axes/buttons that you are getting input from to not take input from the buttons that you don't want in the Input $$anonymous$$anager? Without more information about the build problem, all I (and most people probably) can do is guess.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by jonas-echterhoff · Aug 19, 2010 at 02:35 PM

What kind of change in the values are you seeing? It is very common for joysticks to report slightly varying values for analogue inputs - and you should design your game with some tolerance for that in mind.

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
avatar image
1

Answer by dot 1 · Aug 19, 2010 at 03:19 PM

Owww! Switching to FixedUpdate from Update fixed the jerkiness. I should have thought about it, as it's physical simulation.

it doesn't explain the fail builds though. Any take on that? Hopefully it's something as silly as that as well.

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

No one has followed this question yet.

Related Questions

Distribute terrain in zones 3 Answers

UWP - Performance Issue for Xbox One... 1 Answer

Unity Xbox UWP Support 0 Answers

XBox One Build FileNotFoundException 0 Answers

Xbox 360 controller vibration in build? 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