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
1
Question by Musty · Jun 17, 2014 at 07:39 PM · character controllersliding

Character controller jitters when moving down the slope.

Hey guys, I followed a tutorial for a 3rd person controller so far everything seams to be working fine but only one issue, the game has a feature that lets you slide down hill, but for some reason for me it jitters/shakes like crazy, ive played around with the character controller values but it seamed to do nothing, i have no idea whats causing it to jitter that bad. I was wondering if anyone else had this issue and has a solution. Thanks in Advance.

Here is the code for the slide:

 void ApplySlide()
     {
         if(!TP_Controller.CharacterController.isGrounded)
             return;
         slideDirection = Vector3.zero;
 
         RaycastHit hitInfo;
 
         if(Physics.Raycast(transform.position /*+ Vector3.up*/, Vector3.down, out hitInfo))
         {
             if(hitInfo.normal.y < SlideTrheshold)
                 slideDirection = new Vector3(hitInfo.normal.x, -hitInfo.normal.y, hitInfo.normal.z);
         }
 
         if (slideDirection.magnitude < MaxControllabaleSLideMaginitude)
             MoveVector += slideDirection;
         else
         {
             MoveVector = slideDirection;
         }
     }




Here is the link to the full Code in pastebin:

http://pastebin.com/2ctn3t2n

Comment
Add comment · Show 2
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 MMcCormack · Oct 20, 2015 at 11:50 AM 0
Share

@$$anonymous$$usty

Did you ever get this working? I've just gone through this same tutorial and having the same jittering problem when it slides down slopes and I've no idea how to fix it :(

avatar image toughgames100 · Jan 07, 2021 at 03:40 PM 0
Share

Brother Still You Have Not FOund ANy Solution?

0 Replies

· Add your reply
  • Sort: 

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

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

Related Questions

Unity 5 Character Controller Not Sliding Like in Unity 4 0 Answers

Check if the normal of a collision is within a range of angles 2 Answers

Sliding after moving 0 Answers

How to restrict to one axis 2 Answers

Problem with Character Controller - Stamina Bar 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