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 Freznosis · Sep 24, 2014 at 11:53 PM · fpsdistancemoveslowminimum

FPS Controller Minimum Movement Increasing

Does anyone know how to make the minimum moved distance higher when the button is pressed? Kind of like "min move distance" in CC but every time the button is pressed it moves that distance without having to hold the movement button before it actually takes the step.

When I tap the forward button my character controller either stands still or waits a moment for the button to be held down then moves the "min move distance" if its more than 0 (say 0.07)

Instead of waiting for the button to be held down, I'd like to just immediately move the CC as soon as the button is pressed,if the button is tapped i'd like the "min move distance" to be fulfilled without having to hold the button down.

It is a hard thing to explain but it's in all the latest games, and without it the CC feels sluggish and slow. Does anyone know how to achieve this effect? A simple guide or info would be helpful not asking for anyone to write my code. :)

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 Habitablaba · Sep 25, 2014 at 12:52 AM 0
Share

Could you post the input / movement code you currently have? It might go a long way towards helping explain what you mean.

avatar image Freznosis · Sep 25, 2014 at 10:12 PM 0
Share

FPSController http://pastebin.com/Gw9iAvAR

Thanks. If it makes it any easier, there is a game called warmerise online. If you were to go into it and tap the forward button while you are playing it would be easier to understand what I was trying to explain.

avatar image Habitablaba · Sep 25, 2014 at 10:32 PM 0
Share

Wow. There is a lot of code there. Is that really all in one file?

As far as I can tell, line 490:

 if(Input.GetAxis("Vertical") > 0.1f && inputRun && canRun && !onLadder && Walking)  

Is the only place you are grabbing input, is that correct? If so, have you tried playing with the 0.1f value there? Or the deadzone in the input options? Is this keyboard input or joystick?

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Freznosis · Sep 26, 2014 at 10:45 PM

Hats off to you Habitablaba!

Changing the deadzone and the sensitivity on the input manager gave the desired effect. Thank's again. :)

For the controller just changing the sensitivity worked perfect also, no problem with the deadzone (changing it on pc gave a more accurate feel though, experiment).

Comment
Add comment · Show 1 · 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 Habitablaba · Sep 26, 2014 at 10:55 PM 0
Share

You're welcome!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Multiplayer updates are really slow 0 Answers

Low framerate on physics initialization. 0 Answers

Frame rate drops when replaying level 0 Answers

knowing maximum lenght a player can reach 0 Answers

Decrease distance between 2 objects 3 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