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 Araknoid2520 · Jul 21, 2013 at 10:54 AM · character controllerstuckstairs

CharacterController gets stuck on stairs.

Hi,

I'm following the book "Unity 3x Game Development Essentials" and I noticed something that I cannot for the life of me fix. There is an outpost object that you import in one of the chapters. If you go up approach the stairs with speed you go up them as you would expect but if you approach them very slowly you get stuck on them as if you were trying to climb a steep slope. As far as I can tell from the mesh collider on the outpost theres nothing weird around the steps either. The only way I was able to get it to not get stuck on the stairs was to change the slope limit to 80 or 90 which isn't really a good fix. Changing the step offset doesn't do anything to help the issue either. Since I'm in the process of learning I figured it would be good to know what's causing this issue and how to fix it rather then trying to make some work arounds. If someone could figure out what the issue is and how to fix it I would really appreciate it! Thanks! I posted a SkyDrive link to my project files.

http://sdrv.ms/15WunKX

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Edy · Sep 28, 2014 at 11:33 AM

  1. Set CharacterController.slopeLimit to 90

  2. Edit CharacterMotor.js and void the function AdjustGroundVelocityToNormal around the line 364:

    desiredVelocity = desiredVelocity; // AdjustGroundVelocityToNormal(desiredVelocity, groundNormal);

  3. Use the curve CharacterMotor.slopeSpeedMultiplier for fine tuning the velocity of the character on each slope angle.

Note that CharacterController.stepOffset has a different effect now. If it's set to 0 you will still be able to climb steps as long as they collide naturally with the character's collider. The climbing speed will be defined by the slopeSpeedMultiplier curve. You might consider stepOffset now as a kind of "step climb helper" that allows faster step climbing.

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
0

Answer by Briksins · Jul 21, 2013 at 02:42 PM

In the video tutorial of "Unity 3x Game Development Essentials" it was specifically recommended to increase slope limit to 90, you can see that video chapter on my DropBox

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 Araknoid2520 · Jul 21, 2013 at 05:47 PM 0
Share

I'm going through the book and it uses different enviornments and objects etc. That's besides the point, in that video it shows later that you don't want to have it at 90 because then you can climb steep cliffs and they adjust it back down to 60. $$anonymous$$y issue is that that I cannot get a balance between slope limit and step offset that will fix it. $$anonymous$$oreso changing the step offset doesn't affect the issue I mentioned. If you apporach slow enough it'll stop you.

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

17 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

Related Questions

Player stalls on consecutive steps 0 Answers

Character stuck climbing 0 Answers

Forcing a Character Controller to slide down? 5 Answers

Starter Asset Capsule gets stuck on corners 0 Answers

Character controller won't climb steps if pushing at a wall 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